mirror of
https://github.com/moparisthebest/mail
synced 2024-11-22 17:02:17 -05:00
fix bugs in email dao
This commit is contained in:
parent
32d0c08822
commit
d42c654675
@ -619,7 +619,7 @@ define(function(require) {
|
||||
// public key found... encrypt and send
|
||||
self._encrypt({
|
||||
email: email,
|
||||
keys: receiverPubkey.publicKey
|
||||
keys: [receiverPubkey.publicKey]
|
||||
}, function(err, email) {
|
||||
if (err) {
|
||||
callback(err);
|
||||
@ -645,7 +645,7 @@ define(function(require) {
|
||||
var self = this,
|
||||
pt = options.email.body;
|
||||
|
||||
options.keys = [options.keys] || [];
|
||||
options.keys = options.keys || [];
|
||||
|
||||
// get own public key so send message can be read
|
||||
self._crypto.exportKeys(function(err, ownKeys) {
|
||||
|
Loading…
Reference in New Issue
Block a user