mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-30 03:20:45 +08:00
[snappymail] Include subfolders in folder list rebuild
Subfolders also need to be taken into consideration, otherwise subfolder deletion/creation won't be reflected in the UI. Fixes #72
This commit is contained in:
parent
b658b79264
commit
0190170edd
1 changed files with 2 additions and 2 deletions
|
@ -68,12 +68,12 @@ export class FolderCollectionModel extends AbstractCollectionModel
|
|||
|
||||
return super.reviveFromJson(object, oFolder => {
|
||||
let oCacheFolder = Cache.getFolderFromCacheList(oFolder.FullNameRaw);
|
||||
/*
|
||||
|
||||
if (oCacheFolder) {
|
||||
oFolder.SubFolders = FolderCollectionModel.reviveFromJson(oFolder.SubFolders);
|
||||
oFolder.SubFolders && oCacheFolder.subFolders(oFolder.SubFolders);
|
||||
}
|
||||
*/
|
||||
|
||||
if (!oCacheFolder && (oCacheFolder = FolderModel.reviveFromJson(oFolder))) {
|
||||
if (1 == SystemFolders.indexOf(oFolder.FullNameRaw)) {
|
||||
oCacheFolder.type(FolderType.Inbox);
|
||||
|
|
Loading…
Reference in a new issue