No need to set page=1 when calling mailBox()

This commit is contained in:
djmaze 2021-10-29 15:25:00 +02:00
parent 448f01e0c0
commit 9db640c6c5
2 changed files with 3 additions and 3 deletions

View file

@ -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 => {

View file

@ -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);