mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
small code cleanup ()=>0 to null
This commit is contained in:
parent
c561493bd0
commit
2c363e63a0
5 changed files with 13 additions and 17 deletions
|
|
@ -176,10 +176,6 @@ class AppUser extends AbstractApp {
|
|||
);
|
||||
}
|
||||
|
||||
recacheInboxMessageList() {
|
||||
Remote.messageList(null, {Folder: getFolderInboxName()}, true);
|
||||
}
|
||||
|
||||
messagesMoveTrigger() {
|
||||
const sTrashFolder = FolderUserStore.trashFolder(),
|
||||
sSpamFolder = FolderUserStore.spamFolder();
|
||||
|
|
@ -515,7 +511,7 @@ class AppUser extends AbstractApp {
|
|||
if (folderFromCache.fullNameRaw === FolderUserStore.currentFolderFullNameRaw()) {
|
||||
this.reloadMessageList();
|
||||
} else if (getFolderInboxName() === folderFromCache.fullNameRaw) {
|
||||
this.recacheInboxMessageList();
|
||||
Remote.messageList(null, {Folder: getFolderInboxName()}, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -604,7 +600,7 @@ class AppUser extends AbstractApp {
|
|||
folder.messageCountUnread(folder.messageCountUnread() - alreadyUnread);
|
||||
}
|
||||
|
||||
Remote.messageSetSeen(()=>0, sFolderFullNameRaw, rootUids, true);
|
||||
Remote.messageSetSeen(null, sFolderFullNameRaw, rootUids, true);
|
||||
break;
|
||||
|
||||
case MessageSetAction.UnsetSeen:
|
||||
|
|
@ -617,7 +613,7 @@ class AppUser extends AbstractApp {
|
|||
folder.messageCountUnread(folder.messageCountUnread() - alreadyUnread + rootUids.length);
|
||||
}
|
||||
|
||||
Remote.messageSetSeen(()=>0, sFolderFullNameRaw, rootUids, false);
|
||||
Remote.messageSetSeen(null, sFolderFullNameRaw, rootUids, false);
|
||||
break;
|
||||
|
||||
case MessageSetAction.SetFlag:
|
||||
|
|
@ -625,7 +621,7 @@ class AppUser extends AbstractApp {
|
|||
MessageFlagsCache.storeBySetAction(sFolderFullNameRaw, sSubUid, iSetAction)
|
||||
);
|
||||
|
||||
Remote.messageSetFlagged(()=>0, sFolderFullNameRaw, rootUids, true);
|
||||
Remote.messageSetFlagged(null, sFolderFullNameRaw, rootUids, true);
|
||||
break;
|
||||
|
||||
case MessageSetAction.UnsetFlag:
|
||||
|
|
@ -633,7 +629,7 @@ class AppUser extends AbstractApp {
|
|||
MessageFlagsCache.storeBySetAction(sFolderFullNameRaw, sSubUid, iSetAction)
|
||||
);
|
||||
|
||||
Remote.messageSetFlagged(()=>0, sFolderFullNameRaw, rootUids, false);
|
||||
Remote.messageSetFlagged(null, sFolderFullNameRaw, rootUids, false);
|
||||
break;
|
||||
// no default
|
||||
}
|
||||
|
|
@ -769,7 +765,7 @@ class AppUser extends AbstractApp {
|
|||
FolderUserStore.hasCapability('LIST-STATUS') || this.folderInformationMultiply(true);
|
||||
}, 1000);
|
||||
|
||||
setTimeout(() => Remote.appDelayStart(()=>0), 35000);
|
||||
setTimeout(() => Remote.appDelayStart(null), 35000);
|
||||
|
||||
// When auto-login is active
|
||||
if (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue