mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Prevent MessageList multiple request at the same time #1071
This commit is contained in:
parent
fabc162481
commit
3a3b2f0771
4 changed files with 26 additions and 23 deletions
|
|
@ -196,10 +196,13 @@ MessagelistUserStore.reload = (bDropPagePosition = false, bDropCurrentFolderCach
|
|||
(iError, oData, bCached) => {
|
||||
let error = '';
|
||||
if (iError) {
|
||||
error = getNotification(iError);
|
||||
if (Notifications.RequestAborted !== iError) {
|
||||
MessagelistUserStore([]);
|
||||
if ('reload' != oData?.reason) {
|
||||
error = getNotification(iError);
|
||||
MessagelistUserStore.loading(false);
|
||||
}
|
||||
// if (Notifications.RequestAborted !== iError) {
|
||||
// MessagelistUserStore([]);
|
||||
// }
|
||||
// if (oData.message) { error = oData.message + error; }
|
||||
// if (oData.reason) { error = oData.reason + " " + error; }
|
||||
} else {
|
||||
|
|
@ -278,9 +281,9 @@ MessagelistUserStore.reload = (bDropPagePosition = false, bDropCurrentFolderCach
|
|||
MessagelistUserStore([]);
|
||||
error = getNotification(Notifications.CantGetMessageList);
|
||||
}
|
||||
MessagelistUserStore.loading(false);
|
||||
}
|
||||
MessagelistUserStore.error(error);
|
||||
MessagelistUserStore.loading(false);
|
||||
},
|
||||
{
|
||||
// folder: FolderUserStore.currentFolder() ? self.currentFolder().fullName : ''),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue