mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Log \nonexistent folder for #1008
This commit is contained in:
parent
87313d0616
commit
af9b778f63
1 changed files with 5 additions and 3 deletions
|
|
@ -223,6 +223,7 @@ export class FolderCollectionModel extends AbstractCollectionModel
|
|||
name = parents.pop(),
|
||||
pfolder = getFolderFromCacheList(parentName);
|
||||
if (!pfolder) {
|
||||
console.log('Create nonexistent folder ' + parentName);
|
||||
pfolder = FolderModel.reviveFromJson({
|
||||
'@Object': 'Object/Folder',
|
||||
name: name,
|
||||
|
|
@ -528,6 +529,7 @@ export class FolderModel extends AbstractModel {
|
|||
const folder = super.reviveFromJson(json);
|
||||
if (folder) {
|
||||
const path = folder.fullName.split(folder.delimiter),
|
||||
attr = name => folder.attributes.includes(name),
|
||||
type = (folder.metadata[FolderMetadataKeys.KolabFolderType]
|
||||
|| folder.metadata[FolderMetadataKeys.KolabFolderTypeShared]
|
||||
|| ''
|
||||
|
|
@ -537,9 +539,9 @@ export class FolderModel extends AbstractModel {
|
|||
path.pop();
|
||||
folder.parentName = path.join(folder.delimiter);
|
||||
|
||||
folder.isSubscribed(folder.attributes.includes('\\subscribed'));
|
||||
folder.exists = !folder.attributes.includes('\\nonexistent');
|
||||
folder.selectable(folder.exists && !folder.attributes.includes('\\noselect'));
|
||||
folder.isSubscribed(attr('\\subscribed'));
|
||||
folder.exists = !attr('\\nonexistent');
|
||||
folder.selectable(folder.exists && !attr('\\noselect'));
|
||||
|
||||
type && 'mail' != type && folder.kolabType(type);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue