Pgp improvements

This commit is contained in:
RainLoop Team 2015-07-29 21:21:24 +04:00
parent 3849fd02b4
commit 5123841540
18 changed files with 397 additions and 80 deletions

View file

@ -82,6 +82,28 @@
}), true));
};
/**
* @param {string} sEmail
* @return {?}
*/
PgpUserStore.prototype.findPublicKeyByEmailNotNative = function (sEmail)
{
return _.find(this.openpgpkeysPublic(), function (oItem) {
return oItem && sEmail === oItem.email;
}) || null;
};
/**
* @param {string} sEmail
* @return {?}
*/
PgpUserStore.prototype.findPrivateKeyByEmailNotNative = function (sEmail)
{
return _.find(this.openpgpkeysPrivate(), function (oItem) {
return oItem && sEmail === oItem.email;
}) || null;
};
/**
* @param {string} sEmail
* @param {string=} sPassword