Skip to content

Commit 77d78fb

Browse files
author
Limon Monte
committed
await promise
1 parent 28af7ff commit 77d78fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

extension/chrome/elements/compose-modules/compose-recipients-module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export class ComposeRecipientsModule extends ViewModule<ComposeView> {
167167
}
168168
}
169169

170-
public clearRecipientsForReply = () => {
170+
public clearRecipientsForReply = async () => {
171171
for (const recipient of this.addedRecipients.filter(r => r.sendingType !== 'to')) {
172172
this.removeRecipient(recipient.element);
173173
}
@@ -181,7 +181,7 @@ export class ComposeRecipientsModule extends ViewModule<ComposeView> {
181181
}
182182
// otherwise, reply to all 'to' recipients including the sender
183183
else if (myEmail && this.view.replyParams?.to) {
184-
this.addRecipientsAndShowPreview({ to: [myEmail] });
184+
await this.addRecipientsAndShowPreview({ to: [myEmail] });
185185
}
186186
}
187187

extension/chrome/elements/compose-modules/compose-render-module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class ComposeRenderModule extends ViewModule<ComposeView> {
4747
this.view.recipientsModule.addRecipients(recipients, false).catch(Catch.reportErr);
4848
// await this.view.composerContacts.addRecipientsAndShowPreview(recipients);
4949
if (this.view.skipClickPrompt) { // TODO: fix issue when loading recipients
50-
this.view.recipientsModule.clearRecipientsForReply();
50+
await this.view.recipientsModule.clearRecipientsForReply();
5151
await this.renderReplyMsgComposeTable();
5252
} else {
5353
$('#a_reply,#a_reply_all,#a_forward')
@@ -211,7 +211,7 @@ export class ComposeRenderModule extends ViewModule<ComposeView> {
211211
this.responseMethod = 'forward';
212212
this.view.recipientsModule.clearRecipients();
213213
} else if (method === 'a_reply') {
214-
this.view.recipientsModule.clearRecipientsForReply();
214+
await this.view.recipientsModule.clearRecipientsForReply();
215215
}
216216
await this.renderReplyMsgComposeTable();
217217
}

0 commit comments

Comments
 (0)