Browse Source

Fixed finding messages by ID

Fixes #41
main
M66B 6 years ago
parent
commit
f7d845d77c
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      app/src/main/java/eu/faircode/email/DaoMessage.java

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

@ -96,9 +96,7 @@ public interface DaoMessage {
@Query("SELECT message.* FROM message" +
" JOIN folder ON folder.id = message.folder" +
" WHERE message.account = :account" +
" AND message.msgid = :msgid" +
" AND folder.type <> '" + EntityFolder.INBOX + "'" +
" AND folder.type <> '" + EntityFolder.ARCHIVE + "'")
" AND message.msgid = :msgid")
List<EntityMessage> getMessageByMsgId(long account, String msgid);
@Query("SELECT message.* FROM message" +


Loading…
Cancel
Save