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
@@ -136,7 +136,7 @@ class ComposeViewModel @Inject constructor(
}
// Otherwise, we'll monitor the conversations until our expected conversation is created
conversationRepo.getConversations().asObservable()
conversationRepo.getConversations(prefs.unreadAtTop.get()).asObservable()
.filter { it.isLoaded }
.observeOn(Schedulers.io())
.map { conversationRepo.getOrCreateConversation(addresses)?.id ?: 0 }