properly sort all fetched messages
This commit is contained in:
parent
bda8ff863c
commit
e8f37b69de
2 changed files with 7 additions and 2 deletions
|
|
@ -200,7 +200,7 @@ class ThreadActivity : SimpleActivity() {
|
|||
|
||||
private fun getThreadItems(threadID: Int): ArrayList<ThreadItem> {
|
||||
val messages = getMessages(threadID)
|
||||
messages.sortBy { it.id }
|
||||
messages.sortBy { it.date }
|
||||
|
||||
val items = ArrayList<ThreadItem>()
|
||||
var prevDateTime = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue