Sort rooms lexically
This commit is contained in:
parent
07438150db
commit
e97773dc97
|
@ -82,13 +82,13 @@ function onTimelineEventReceived(
|
|||
"content": content,
|
||||
"isLocalEcho": true
|
||||
}, 1, 500)
|
||||
|
||||
if (found.length > 0) {
|
||||
timelines.set(found[0], item)
|
||||
return
|
||||
} else {
|
||||
// Multiple clients will emit duplicate events with the same eventId
|
||||
timelines.upsert({"eventId": event_id}, item, true, 500)
|
||||
}
|
||||
|
||||
// Multiple clients will emit duplicate events with the same eventId
|
||||
timelines.upsert({"eventId": event_id}, item, true, 500)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2,4 +2,8 @@ import QtQuick 2.7
|
|||
import SortFilterProxyModel 0.2
|
||||
import "../Base"
|
||||
|
||||
HListModel {}
|
||||
HListModel {
|
||||
sorters: StringSorter {
|
||||
roleName: "displayName"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user