Sort rooms lexically

This commit is contained in:
miruka 2019-07-04 18:53:10 -04:00
parent 07438150db
commit e97773dc97
2 changed files with 9 additions and 5 deletions

View File

@ -82,13 +82,13 @@ 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)
}
} }

View File

@ -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"
}
}