From 9db640c6c58f6e2ab85c036afe97c7e3be364c04 Mon Sep 17 00:00:00 2001 From: djmaze Date: Fri, 29 Oct 2021 15:25:00 +0200 Subject: [PATCH] No need to set page=1 when calling mailBox() --- dev/Stores/User/Message.js | 2 +- dev/View/User/MailBox/MessageList.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/Stores/User/Message.js b/dev/Stores/User/Message.js index e10fcb1c7..61553197a 100644 --- a/dev/Stores/User/Message.js +++ b/dev/Stores/User/Message.js @@ -242,7 +242,7 @@ export const MessageUserStore = new class { i18n('MESSAGE_LIST/NEW_MESSAGE_NOTIFICATION', { COUNT: len }), - { Url: mailBox(newMessages[0].Folder, 1) } + { Url: mailBox(newMessages[0].Folder) } ); } else { newMessages.forEach(item => { diff --git a/dev/View/User/MailBox/MessageList.js b/dev/View/User/MailBox/MessageList.js index 84a2539cf..e31ea6afa 100644 --- a/dev/View/User/MailBox/MessageList.js +++ b/dev/View/User/MailBox/MessageList.js @@ -219,14 +219,14 @@ export class MailMessageList extends AbstractViewRight { ); if ('INBOX' === sFolder) { - rl.route.setHash(mailBox(sFolder, 1)); + rl.route.setHash(mailBox(sFolder)); } if (message) { this.selector.selectMessageItem(message); } else { if ('INBOX' !== sFolder) { - rl.route.setHash(mailBox(sFolder, 1)); + rl.route.setHash(mailBox(sFolder)); } MessageUserStore.selectMessageByFolderAndUid(sFolder, iUid);