mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 18:11:03 +01:00
Prevent deleting local messages with pending add operation
This commit is contained in:
@@ -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" +
|
||||
|
||||
Reference in New Issue
Block a user