mirror of
https://github.com/moparisthebest/mail
synced 2025-02-16 23:20:09 -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
|
// public key found... encrypt and send
|
||||||
self._encrypt({
|
self._encrypt({
|
||||||
email: email,
|
email: email,
|
||||||
keys: receiverPubkey.publicKey
|
keys: [receiverPubkey.publicKey]
|
||||||
}, function(err, email) {
|
}, function(err, email) {
|
||||||
if (err) {
|
if (err) {
|
||||||
callback(err);
|
callback(err);
|
||||||
@ -645,7 +645,7 @@ define(function(require) {
|
|||||||
var self = this,
|
var self = this,
|
||||||
pt = options.email.body;
|
pt = options.email.body;
|
||||||
|
|
||||||
options.keys = [options.keys] || [];
|
options.keys = options.keys || [];
|
||||||
|
|
||||||
// get own public key so send message can be read
|
// get own public key so send message can be read
|
||||||
self._crypto.exportKeys(function(err, ownKeys) {
|
self._crypto.exportKeys(function(err, ownKeys) {
|
||||||
|
Loading…
Reference in New Issue
Block a user