mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-22 10:58:12 +00:00
perf(mail(js)): various optimizations
We now use IMAP QRESYNC to synchronize mailbox.
This commit is contained in:
1 parent
b4ccafd546
commit
a9c6f09273
16 files changed
+362
-172
No files matched your search
@@ -26,8 +26,10 @@
|
||||
this.init(futureMessageData);
|
||||
}
|
||||
this.uid = parseInt(futureMessageData.uid);
|
||||
this.selected = !!futureMessageData.selected;
|
||||
this.level = parseInt(futureMessageData.level);
|
||||
this.first = parseInt(futureMessageData.first) === 1;
|
||||
this.flags = [];
|
||||
if (this.first) {
|
||||
this.threadCount = parseInt(futureMessageData.count);
|
||||
this.collapsed = (futureMessageData.collapsed === true);
|
||||
@@ -61,6 +63,8 @@
|
||||
// Initialize tags form user's defaults
|
||||
if (Preferences.defaults.SOGoMailLabelsColors) {
|
||||
Message.$tags = Preferences.defaults.SOGoMailLabelsColors;
|
||||
} else {
|
||||
Message.$tags = {};
|
||||
}
|
||||
if (Preferences.defaults.SOGoMailDisplayRemoteInlineImages &&
|
||||
Preferences.defaults.SOGoMailDisplayRemoteInlineImages == 'always') {
|
||||
|
||||
Reference in new issue
Block a user