Merge pull request #1347 from SergeyMosin/reply-forward-indicators-fix

fix: flag indicators are added to wrong message when another message is selected while composing
This commit is contained in:
the-djmaze 2023-12-07 00:19:45 +01:00 committed by GitHub
commit a4724df69e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -500,10 +500,10 @@ export class ComposePopupView extends AbstractViewPopup {
'forward': '$forwarded'
}[this.aDraftInfo[0]];
if (flag) {
const aFlags = MessageUserStore.message().flags();
const aFlags = oLastMessage.flags();
if (aFlags.indexOf(flag) === -1) {
aFlags.push(flag);
MessageUserStore.message().flags(aFlags);
oLastMessage.flags(aFlags);
}
}
}