improve message marking after delivery to avoid glitching
This commit is contained in:
parent
da4f476bce
commit
d02df0a1a2
2 changed files with 14 additions and 4 deletions
|
|
@ -30,7 +30,7 @@ interface MessagesDao {
|
|||
fun markThreadRead(threadId: Long)
|
||||
|
||||
@Query("UPDATE messages SET type = :type WHERE id = :id")
|
||||
fun updateType(id: Long, type: Int)
|
||||
fun updateType(id: Long, type: Int): Int
|
||||
|
||||
@Query("DELETE FROM messages WHERE id = :id")
|
||||
fun delete(id: Long)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue