fix: use messageid in comparator

Fixes #324
This commit is contained in:
Richard Ramos 2020-09-12 11:05:41 -04:00 committed by Iuri Matias
parent b479dba001
commit 6c7a3d6340
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ ScrollView {
DelegateModel {
id: messageListDelegate
property var lessThan: [
function(left, right) { return left.clock < right.clock } // TODO: should be sorted by messageId
function(left, right) { return left.clock < right.clock && left.messageId < right.messageId }
]
property int sortOrder: 0