Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: flag indicators are added to wrong message when another message …
Browse files Browse the repository at this point in the history
…is selected while composing
  • Loading branch information
SergeyMosin committed Dec 5, 2023
1 parent fa15ff6 commit 8537275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/View/Popup/Compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 8537275

Please sign in to comment.