(js) Restore threads status on initial load

This commit is contained in:
Francis Lachapelle
2019-06-19 11:48:10 -04:00
parent 2c60f03339
commit bae39ffefa
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -955,6 +955,8 @@ function openMailbox(mailbox, reload) {
var messageList = $("messageListBody").down('TBODY');
var key = mailbox;
Mailer.currentMailbox = mailbox;
if (reload) {
// Don't change data source, only query UIDs from server and refresh
// the view. Cases that end up here:
@@ -997,8 +999,6 @@ function openMailbox(mailbox, reload) {
Mailer.dataTable.render();
}
Mailer.currentMailbox = mailbox;
if (Mailer.unseenCountMailboxes.indexOf(mailbox) == -1) {
Mailer.unseenCountMailboxes.push(mailbox);
}