(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

1
NEWS
View File

@@ -3,6 +3,7 @@
Bug fixes
- sogo-tool manage-acl not working on v2 (#4292)
- [web] restored mail threads state of inbox on initial page load
2.3.23 (2017-10-18)

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