We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bca6ee commit 3ab5d6cCopy full SHA for 3ab5d6c
extension/chrome/elements/compose-modules/compose-recipients-module.ts
@@ -805,8 +805,11 @@ export class ComposeRecipientsModule extends ViewModule<ComposeView> {
805
const email = $(recipientEl).text().trim();
806
const dbContacts = await ContactStore.get(undefined, [email]);
807
if (dbContacts) {
808
- recipientEl.element.classList.remove('no_pgp');
809
- await this.renderPubkeyResult(recipientEl, dbContacts as Contact[]);
+ const realDbContacts = dbContacts.filter(contact => contact !== undefined);
+ if (realDbContacts && realDbContacts.length) {
810
+ recipientEl.element.classList.remove('no_pgp');
811
+ await this.renderPubkeyResult(recipientEl, realDbContacts as Contact[]);
812
+ }
813
}
814
815
0 commit comments