File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
extension/chrome/elements/compose-modules Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments