improve message marking after delivery to avoid glitching

This commit is contained in:
tibbi 2021-01-02 11:24:56 +01:00
parent da4f476bce
commit d02df0a1a2
2 changed files with 14 additions and 4 deletions

View file

@ -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)