(js) Test threadsCollapsed settings before read

This commit is contained in:
Francis Lachapelle
2019-07-03 13:03:48 -04:00
parent 6fb26ee2aa
commit 679b538368

View File

@@ -166,8 +166,10 @@
this.id = this.$id();
this.$acl = new Mailbox.$$Acl('Mail/' + this.id);
if (this.threaded) {
this.$collapsedThreads = Mailbox.$Preferences.settings.Mail.threadsCollapsed['/' + this.id] || [];
}
this.$collapsedThreads = [];
if (Mailbox.$Preferences.settings.Mail.threadsCollapsed && Mailbox.$Preferences.settings.Mail.threadsCollapsed['/' + this.id]) {
this.$collapsedThreads = Mailbox.$Preferences.settings.Mail.threadsCollapsed['/' + this.id];
}
}
this.$displayName = this.name;
if (this.type) {