search conversations too, not just messages

This commit is contained in:
tibbi 2021-02-15 22:07:50 +01:00
parent 131b1a44c3
commit a53652042b
2 changed files with 11 additions and 3 deletions

View file

@ -17,6 +17,9 @@ interface ConversationsDao {
@Query("SELECT * FROM conversations WHERE read = 0")
fun getUnreadConversations(): List<Conversation>
@Query("SELECT * FROM conversations WHERE title LIKE :text")
fun getConversationsWithText(text: String): List<Conversation>
@Query("UPDATE conversations SET read = 1 WHERE thread_id = :threadId")
fun markRead(threadId: Long)