make unread conversations float to the top of conversation lists and widgets. satisifies https://github.com/octoshrimpy/quik/issues/41 and largely satisfies https://github.com/octoshrimpy/quik/issues/99

This commit is contained in:
gavine99
2025-01-14 18:41:24 +11:00
parent 61293ce035
commit 05b9fcceef
15 changed files with 132 additions and 25 deletions
@@ -27,9 +27,9 @@ import io.realm.RealmResults
interface ConversationRepository {
fun getConversations(archived: Boolean = false): RealmResults<Conversation>
fun getConversations(unreadAtTop: Boolean, archived: Boolean = false): RealmResults<Conversation>
fun getConversationsSnapshot(): List<Conversation>
fun getConversationsSnapshot(unreadAtTop: Boolean): List<Conversation>
/**
* Returns the top conversations that were active in the last week