properley update message types in the local db too

This commit is contained in:
tibbi 2021-01-01 20:13:45 +01:00
parent 7fedcbd108
commit ac7d2afbb6
4 changed files with 14 additions and 6 deletions

View file

@ -29,6 +29,9 @@ interface MessagesDao {
@Query("UPDATE messages SET read = 1 WHERE thread_id = :threadId")
fun markThreadRead(threadId: Long)
@Query("UPDATE messages SET type = :type WHERE id = :id")
fun updateType(id: Long, type: Int)
@Query("DELETE FROM messages WHERE id = :id")
fun delete(id: Long)