Subscribe to created folder if showing subscribed folders only

This commit is contained in:
M66B 2019-08-04 09:15:34 +02:00
parent 6b34b64d10
commit fcd8bc6700
1 changed files with 2 additions and 0 deletions

View File

@ -795,6 +795,8 @@ class Core {
Folder ifolder = istore.getFolder(folder.name);
if (!ifolder.exists())
ifolder.create(Folder.HOLDS_MESSAGES);
if (subscribed_only)
ifolder.setSubscribed(true);
db.folder().resetFolderTbc(folder.id);
local.put(folder.name, folder);
sync_folders = true;