mirror of https://github.com/M66B/FairEmail.git
Prevent deleting local messages with pending add operation
This commit is contained in:
parent
90d4d51e18
commit
e2b89a8703
|
@ -371,7 +371,11 @@ public interface DaoMessage {
|
|||
@Query("DELETE FROM message" +
|
||||
" WHERE folder = :folder" +
|
||||
" AND uid IS NULL" +
|
||||
" AND NOT ui_browsed")
|
||||
" AND NOT ui_browsed" +
|
||||
" AND NOT EXISTS" +
|
||||
" (SELECT * FROM operation" +
|
||||
" WHERE operation.message = message.id" +
|
||||
" AND operation.name = '" + EntityOperation.ADD + "')")
|
||||
int deleteOrphans(long folder);
|
||||
|
||||
@Query("DELETE FROM message" +
|
||||
|
|
Loading…
Reference in New Issue