Many more changes for #89

This commit is contained in:
the-djmaze 2022-01-20 16:38:27 +01:00
parent 3cc3a76b23
commit a7eeeb4f55
18 changed files with 310 additions and 236 deletions

View file

@ -133,8 +133,6 @@ class ComposePopupView extends AbstractViewPopup {
this.capaOpenPGP = PgpUserStore.isSupported();
this.identities = IdentityUserStore;
this.addObservables({
identitiesDropdownTrigger: false,
@ -189,7 +187,7 @@ class ComposePopupView extends AbstractViewPopup {
// div.textAreaParent
composeEditorArea: null,
currentIdentity: this.identities()[0] ? this.identities()[0] : null
currentIdentity: IdentityUserStore()[0] || null
});
// this.to.subscribe((v) => console.log(v));
@ -281,7 +279,7 @@ class ComposePopupView extends AbstractViewPopup {
currentIdentity: value => {
this.canPgpSign(false);
value && PgpUserStore.hasPrivateKeyForEmail(value.email()).then(result => {
value && PgpUserStore.hasKeyForSigning(value.email()).then(result => {
console.log({canPgpSign:result});
this.canPgpSign(result)
});