Synchronize "Unbekannt"

This commit is contained in:
M66B 2020-12-01 08:30:52 +01:00
parent 5062b46a8b
commit a5dc2369d2
1 changed files with 3 additions and 1 deletions

View File

@ -1718,11 +1718,13 @@ class Core {
folder = db.folder().getFolderByName(account.id, fullName);
if (folder == null) {
boolean synchronize = "Unbekannt".equals(fullName);
folder = new EntityFolder();
folder.account = account.id;
folder.name = fullName;
folder.type = (EntityFolder.SYSTEM.equals(type) ? type : EntityFolder.USER);
folder.synchronize = (subscribed && subscriptions && sync_subscribed);
folder.synchronize = (synchronize || (subscribed && subscriptions && sync_subscribed));
folder.subscribed = subscribed;
folder.poll = true;
folder.sync_days = EntityFolder.DEFAULT_SYNC;