Merge Backend and QMLModels

Backend.models.accounts → Backend.accounts
Backend.models.roomEvents → Backend.roomEvents
This commit is contained in:
miruka
2019-05-02 14:31:47 -04:00
parent 047225fded
commit 52d538e995
11 changed files with 35 additions and 56 deletions

View File

@@ -10,8 +10,9 @@ HColumnLayout {
property string roomId: ""
readonly property var roomInfo:
Backend.models.accounts.get(userId)
.roomCategories.get(category).rooms.get(roomId)
Backend.accounts.get(userId)
.roomCategories.get(category)
.rooms.get(roomId)
property bool canLoadPastEvents: true

View File

@@ -10,7 +10,7 @@ HGlassRectangle {
ListView {
id: roomEventListView
delegate: RoomEventDelegate {}
model: Backend.models.roomEvents.get(chatPage.roomId)
model: Backend.roomEvents.get(chatPage.roomId)
anchors.fill: parent
anchors.leftMargin: space