add a Mark as Unread menu item at the thread screen

This commit is contained in:
tibbi 2020-06-18 11:14:51 +02:00
parent 21891ff677
commit 22b6040a86
4 changed files with 30 additions and 0 deletions

View file

@ -17,6 +17,9 @@ interface ConversationsDao {
@Query("UPDATE conversations SET read = 1 WHERE thread_id = :threadId")
fun markRead(threadId: Long)
@Query("UPDATE conversations SET read = 0 WHERE thread_id = :threadId")
fun markUnread(threadId: Long)
@Query("DELETE FROM conversations WHERE id = :id")
fun delete(id: Long)