List outbox in thread too

This commit is contained in:
M66B 2018-08-25 05:12:04 +00:00
parent aa95c78563
commit fbd3fab365
1 changed files with 1 additions and 2 deletions

View File

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