Reorganize backend files, show accounts in UI

This commit is contained in:
miruka
2019-04-12 04:33:09 -04:00
parent 4f9a47027c
commit 5d4c7b8520
22 changed files with 214 additions and 238 deletions

View File

@@ -11,7 +11,7 @@ Column {
}
readonly property string displayName:
Backend.getUser(sender_id).display_name
Backend.getUser(chatPage.room.room_id, sender_id).display_name
readonly property bool isOwn:
chatPage.user.user_id === sender_id

View File

@@ -13,7 +13,7 @@ Rectangle {
ListView {
id: messageListView
anchors.fill: parent
model: Backend.messagesModel[chatPage.room.room_id]
model: Backend.models.messages[chatPage.room.room_id]
delegate: MessageDelegate {}
//highlight: Rectangle {color: "lightsteelblue"; radius: 5}