mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
More MessageFlagsCache improvements
This commit is contained in:
parent
0f6bb75e80
commit
148913ea32
2 changed files with 26 additions and 31 deletions
|
|
@ -397,13 +397,8 @@ class ComposePopupView extends AbstractViewPopup {
|
|||
|
||||
if (3 === arrayLength(this.aDraftInfo)) {
|
||||
const flagsCache = MessageFlagsCache.getFor(this.aDraftInfo[2], this.aDraftInfo[1]);
|
||||
if (flagsCache) {
|
||||
if ('forward' === this.aDraftInfo[0]) {
|
||||
flagsCache[3] = true;
|
||||
} else {
|
||||
flagsCache[2] = true;
|
||||
}
|
||||
|
||||
if (isArray(flagsCache)) {
|
||||
flagsCache.push(('forward' === this.aDraftInfo[0]) ? '$forwarded' : '\\answered');
|
||||
MessageFlagsCache.setFor(this.aDraftInfo[2], this.aDraftInfo[1], flagsCache);
|
||||
rl.app.reloadFlagsCurrentMessageListAndMessageFromCache();
|
||||
setFolderHash(this.aDraftInfo[2], '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue