From bd6c571eaf90d59a00235aef1744b0b0028a73c8 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 17 Mar 2021 13:08:54 +0100 Subject: [PATCH] Reset folder TBD --- app/src/main/java/eu/faircode/email/Core.java | 3 ++- app/src/main/java/eu/faircode/email/DaoFolder.java | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index f96ec1eff7..499f03c8df 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -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; } diff --git a/app/src/main/java/eu/faircode/email/DaoFolder.java b/app/src/main/java/eu/faircode/email/DaoFolder.java index 4ae1587879..2064ec2ee5 100644 --- a/app/src/main/java/eu/faircode/email/DaoFolder.java +++ b/app/src/main/java/eu/faircode/email/DaoFolder.java @@ -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);