search conversations too, not just messages
This commit is contained in:
parent
131b1a44c3
commit
a53652042b
2 changed files with 11 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue