Experiment

This commit is contained in:
M66B
2020-04-27 17:41:49 +02:00
parent 86a7f49f8d
commit 86e589a904
2 changed files with 16 additions and 3 deletions

View File

@@ -334,6 +334,11 @@ public interface DaoMessage {
" AND (id = :id OR msgid = :msgid)")
List<EntityMessage> getMessagesBySimilarity(long account, long id, String msgid);
@Query("SELECT * FROM message" +
" WHERE account = :account" +
" AND hash = :hash")
List<EntityMessage> getMessagesByHash(long account, String hash);
@Query("SELECT COUNT(*) FROM message" +
" WHERE folder = :folder" +
" AND msgid = :msgid")