mark messages as read in the local db too

This commit is contained in:
tibbi 2020-05-30 20:29:37 +02:00
parent 0db8b202c7
commit 8dd3fc561f
4 changed files with 17 additions and 4 deletions

View file

@ -14,6 +14,9 @@ interface ConversationsDao {
@Query("SELECT * FROM conversations")
fun getAll(): List<Conversation>
@Query("UPDATE conversations SET read = 1 WHERE thread_id = :threadId")
fun markRead(threadId: Long)
@Query("DELETE FROM conversations WHERE id = :id")
fun delete(id: Long)