Added options to Identity for PGP sign and encrypt #89

This commit is contained in:
the-djmaze 2024-02-11 21:16:38 +01:00
parent 4c84c6cdfc
commit c72c2dbaa4
6 changed files with 65 additions and 46 deletions

View file

@ -346,7 +346,13 @@ export class ComposePopupView extends AbstractViewPopup {
sendSuccessButSaveError: value => !value && this.savedErrorDesc(''),
currentIdentity: value => value && this.from(value.formattedName()),
currentIdentity: value => {
if (value) {
this.from(value.formattedName());
this.pgpEncrypt(value.pgpEncrypt/* || SettingsUserStore.pgpEncrypt()*/);
this.pgpSign(value.pgpSign/* || SettingsUserStore.pgpSign()*/);
}
},
from: value => {
this.canPgpSign(false);
@ -1389,14 +1395,6 @@ export class ComposePopupView extends AbstractViewPopup {
});
}
togglePgpSign() {
this.pgpSign(!this.pgpSign()/* && this.canPgpSign()*/);
}
togglePgpEncrypt() {
this.pgpEncrypt(!this.pgpEncrypt()/* && this.canPgpEncrypt()*/);
}
async getMessageRequestParams(sSaveFolder, draft)
{
let Text = this.oEditor.getData().trim(),