1
0
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:
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 // 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) {