Merge MailSo\Mail\Folder into MailSo\Imap\Folder and speedup process

This commit is contained in:
the-djmaze
2022-12-14 14:03:16 +01:00
parent 6765f4bb5d
commit d7e93d8229
9 changed files with 295 additions and 424 deletions

View File

@@ -105,7 +105,6 @@ export class FolderCollectionModel extends AbstractCollectionModel
constructor() {
super();
this.CountRec
this.IsThreadsSupported
this.Namespace;
this.Optimized
this.SystemFolders
@@ -200,7 +199,10 @@ export class FolderCollectionModel extends AbstractCollectionModel
FolderUserStore.namespace = this.Namespace;
AppUserStore.threadsAllowed(!!(Settings.app('useImapThread') && this.IsThreadsSupported));
// 'THREAD=REFS', 'THREAD=REFERENCES', 'THREAD=ORDEREDSUBJECT'
AppUserStore.threadsAllowed(!!(
Settings.app('useImapThread') && this.Capabilities.some(capa => capa.startsWith('THREAD='))
));
FolderUserStore.folderListOptimized(!!this.Optimized);
FolderUserStore.quotaUsage(this.quotaUsage);