mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
improve: if applicable set '\\answered' or '$forwarded' flag after a message is sent so the proper icon is shown in the message list view
This commit is contained in:
parent
bafd17d029
commit
22691450af
1 changed files with 13 additions and 0 deletions
|
|
@ -493,6 +493,19 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
|| getNotification(Notifications.CantSendMessage));
|
||||
}
|
||||
} else {
|
||||
if (arrayLength(this.aDraftInfo) > 0) {
|
||||
const flag = {
|
||||
'reply': '\\answered',
|
||||
'forward': '$forwarded'
|
||||
}[this.aDraftInfo[0]];
|
||||
if (flag) {
|
||||
const aFlags = MessageUserStore.message().flags();
|
||||
if (aFlags.indexOf(flag) === -1) {
|
||||
aFlags.push(flag);
|
||||
MessageUserStore.message().flags(aFlags);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.close();
|
||||
}
|
||||
setFolderETag(this.draftsFolder(), '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue