From f7d845d77ccc374ffe0d24d175e4b0f9005b1ebc Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 23 Aug 2018 13:49:30 +0000 Subject: [PATCH] Fixed finding messages by ID Fixes #41 --- app/src/main/java/eu/faircode/email/DaoMessage.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/DaoMessage.java b/app/src/main/java/eu/faircode/email/DaoMessage.java index 6f04410a..49515a39 100644 --- a/app/src/main/java/eu/faircode/email/DaoMessage.java +++ b/app/src/main/java/eu/faircode/email/DaoMessage.java @@ -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 getMessageByMsgId(long account, String msgid); @Query("SELECT message.* FROM message" +