1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 10:52:17 -05:00

fix bugs in email dao

This commit is contained in:
Felix Hammerl 2013-12-04 15:35:43 +01:00
parent 32d0c08822
commit d42c654675

View File

@ -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) {