mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 18:59:01 +00:00
Keep browsed messages
This commit is contained in:
parent
078af01b17
commit
0c01bec194
2 changed files with 4 additions and 3 deletions
|
@ -257,7 +257,8 @@ public interface DaoMessage {
|
|||
@Query("SELECT uid FROM message" +
|
||||
" WHERE folder = :folder" +
|
||||
" AND (:received IS NULL OR received >= :received)" +
|
||||
" AND NOT uid IS NULL")
|
||||
" AND NOT uid IS NULL" +
|
||||
" AND NOT ui_browsed")
|
||||
List<Long> getUids(long folder, Long received);
|
||||
|
||||
@Query("SELECT * FROM message WHERE NOT ui_snoozed IS NULL")
|
||||
|
@ -352,7 +353,8 @@ public interface DaoMessage {
|
|||
|
||||
@Query("DELETE FROM message" +
|
||||
" WHERE folder = :folder" +
|
||||
" AND uid IS NULL")
|
||||
" AND uid IS NULL" +
|
||||
" AND NOT ui_browsed")
|
||||
int deleteOrphans(long folder);
|
||||
|
||||
@Query("DELETE FROM message" +
|
||||
|
|
|
@ -1840,7 +1840,6 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
db.message().setMessageSent(sid, imessage.getSentDate().getTime());
|
||||
db.message().setMessageUiHide(sid, false);
|
||||
db.message().deleteMessage(message.id);
|
||||
//EntityOperation.queue(this, db, message, EntityOperation.ADD);
|
||||
}
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
|
|
Loading…
Reference in a new issue