Browse Source

Do not mark messages in outbox read

main
M66B 6 years ago
parent
commit
6d790c7d51
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/src/main/java/eu/faircode/email/DaoMessage.java

+ 5
- 1
app/src/main/java/eu/faircode/email/DaoMessage.java View File

@ -83,7 +83,11 @@ public interface DaoMessage {
@Query("SELECT * FROM message WHERE msgid = :msgid")
EntityMessage getMessageByMsgId(String msgid);
@Query("SELECT * FROM message WHERE account = :account AND thread = :thread")
@Query("SELECT message.* FROM message" +
" JOIN folder ON folder.id = message.folder" +
" WHERE message.account = :account" +
" AND message.thread = :thread" +
" AND folder.type <> '" + EntityFolder.OUTBOX + "'")
List<EntityMessage> getMessageByThread(long account, String thread);
@Query("SELECT message.*, folder.name as folderName, folder.type as folderType" +


Loading…
Cancel
Save