1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Reset folder TBD

This commit is contained in:
M66B 2021-03-17 13:08:54 +01:00
parent 8ebfab6093
commit bd6c571eaf
2 changed files with 5 additions and 1 deletions

View file

@ -1807,8 +1807,9 @@ class Core {
ifolder.setSubscribed(false);
ifolder.delete(false);
}
} finally {
db.folder().deleteFolder(folder.id);
} finally {
db.folder().resetFolderTbd(folder.id);
sync_folders = true;
}

View file

@ -336,6 +336,9 @@ public interface DaoFolder {
@Query("UPDATE folder SET tbc = NULL WHERE id = :id AND tbc IS NOT NULL")
int resetFolderTbc(long id);
@Query("UPDATE folder SET tbd = NULL WHERE id = :id AND tbd IS NOT NULL")
int resetFolderTbd(long id);
@Query("UPDATE folder SET `rename` = NULL WHERE id = :id AND `rename` IS NOT NULL")
int resetFolderRename(long id);