Skip to content

Commit 5c843f7

Browse files
committed
fix broken threading issue
1 parent e740933 commit 5c843f7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,11 @@ export class ComposeRenderModule extends ViewModule<ComposeView> {
9898
const thread = await this.view.emailProvider.threadGet(this.view.threadId, 'metadata');
9999
const inReplyToMessage = thread.messages?.find(message => message.id === this.view.replyMsgId);
100100
if (inReplyToMessage) {
101-
this.view.replyParams.inReplyTo = inReplyToMessage.payload?.headers?.find(
102-
header => header.name === 'Message-Id' || header.name === 'Message-ID'
103-
)?.value;
101+
const msgId = inReplyToMessage.payload?.headers?.find(header => header.name === 'Message-Id' || header.name === 'Message-ID')?.value;
102+
if (msgId) {
103+
this.view.sendBtnModule.additionalMsgHeaders['In-Reply-To'] = msgId;
104+
this.view.sendBtnModule.additionalMsgHeaders.References = msgId;
105+
}
104106
}
105107
this.view.replyParams.subject = `${this.responseMethod === 'reply' ? 'Re' : 'Fwd'}: ${this.view.replyParams.subject}`;
106108
if (this.view.useFullScreenSecureCompose) {

0 commit comments

Comments
 (0)