mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Reset folder etag on draft send
This commit is contained in:
parent
1923d5cb4b
commit
a019f4d80e
1 changed files with 5 additions and 10 deletions
|
|
@ -440,16 +440,7 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
} else try {
|
||||
this.sendError(false);
|
||||
this.sending(true);
|
||||
/*
|
||||
if (3 === arrayLength(this.aDraftInfo)) {
|
||||
const flagsCache = MessageFlagsCache.getFor(this.aDraftInfo[2], this.aDraftInfo[1]);
|
||||
if (isArray(flagsCache)) {
|
||||
flagsCache.push(('forward' === this.aDraftInfo[0]) ? '$forwarded' : '\\answered');
|
||||
MessageFlagsCache.setFor(this.aDraftInfo[2], this.aDraftInfo[1], flagsCache);
|
||||
setFolderETag(this.aDraftInfo[2], '');
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
sSentFolder = UNUSED_OPTION_VALUE === sSentFolder ? '' : sSentFolder;
|
||||
|
||||
this.getMessageRequestParams(sSentFolder).then(params => {
|
||||
|
|
@ -470,6 +461,10 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
}
|
||||
setFolderETag(this.draftsFolder(), '');
|
||||
setFolderETag(sSentFolder, '');
|
||||
if (3 === arrayLength(this.aDraftInfo)) {
|
||||
const folder = this.aDraftInfo[2];
|
||||
setFolderETag(folder, '');
|
||||
}
|
||||
reloadDraftFolder();
|
||||
},
|
||||
params,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue