Merge pull request #213 from gavine99/unread_at_top

make unread conversations float at the top of conversation lists
This commit is contained in:
octoshrimpy
2025-01-14 08:16:25 -07:00
committed by GitHub
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 }