mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-01 20:42:19 +08:00
Speedup flags cache
This commit is contained in:
parent
2b3a18c629
commit
0f02cc6d29
1 changed files with 2 additions and 4 deletions
|
@ -121,7 +121,7 @@ export class MessageFlagsCache
|
|||
if (message) {
|
||||
const uid = message.uid,
|
||||
flags = this.getFor(message.folder, uid),
|
||||
thread = message.threads;
|
||||
thread = message.threads();
|
||||
|
||||
if (isArray(flags)) {
|
||||
message.flags(flags);
|
||||
|
@ -142,9 +142,7 @@ export class MessageFlagsCache
|
|||
* @param {(MessageModel|null)} message
|
||||
*/
|
||||
static store(message) {
|
||||
if (message) {
|
||||
this.setFor(message.folder, message.uid, message.flags());
|
||||
}
|
||||
message && this.setFor(message.folder, message.uid, message.flags());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue