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