feat: add clear messages and media dialogs and change db to not use message count == 0 in conversations

This commit is contained in:
0x330a
2022-11-14 17:22:00 +11:00
parent e70b0ee606
commit ca200c4f2e
14 changed files with 516 additions and 10 deletions

View File

@@ -155,6 +155,7 @@ interface StorageProtocol {
fun getMessageCount(threadID: Long): Long
fun setThreadPinned(threadID: Long, isPinned: Boolean)
fun isThreadPinned(threadID: Long): Boolean
fun clearMessages(threadID: Long): Boolean
// Contacts
fun getContactWithSessionID(sessionID: String): Contact?