From d42c654675f3f88242525d7cc782d37de95bad77 Mon Sep 17 00:00:00 2001 From: Felix Hammerl Date: Wed, 4 Dec 2013 15:35:43 +0100 Subject: [PATCH] fix bugs in email dao --- src/js/dao/email-dao.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/dao/email-dao.js b/src/js/dao/email-dao.js index 66b6014..e694b78 100644 --- a/src/js/dao/email-dao.js +++ b/src/js/dao/email-dao.js @@ -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) {