properley update message types in the local db too
This commit is contained in:
parent
7fedcbd108
commit
ac7d2afbb6
4 changed files with 14 additions and 6 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue