mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-22 21:58:53 +01:00
Make sure to show latest snippet in conversation list
This commit is contained in:
@@ -23,8 +23,8 @@ class MessageRepository(val context: Context) {
|
|||||||
fun getConversationMessagesAsync(): RealmResults<Message> {
|
fun getConversationMessagesAsync(): RealmResults<Message> {
|
||||||
return Realm.getDefaultInstance()
|
return Realm.getDefaultInstance()
|
||||||
.where(Message::class.java)
|
.where(Message::class.java)
|
||||||
|
.findAllSortedAsync("date", Sort.DESCENDING)
|
||||||
.distinctAsync("threadId")
|
.distinctAsync("threadId")
|
||||||
.sort("date", Sort.DESCENDING)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getConversationAsync(threadId: Long): Conversation {
|
fun getConversationAsync(threadId: Long): Conversation {
|
||||||
|
|||||||
Reference in New Issue
Block a user