45 lines
871 B
QML
Raw Normal View History

2019-03-21 23:28:14 -04:00
import QtQuick 2.7
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.4
ColumnLayout {
2019-04-21 10:44:04 -04:00
property string userId: ""
property string roomId: ""
2019-03-21 23:28:14 -04:00
2019-04-21 10:44:04 -04:00
readonly property var roomInfo:
Backend.models.rooms.get(userId).getWhere("roomId", roomId)
2019-04-14 16:12:07 -04:00
2019-04-26 16:02:20 -04:00
property bool canLoadPastEvents: true
2019-04-22 14:24:45 -04:00
Component.onCompleted: console.log("replaced")
2019-04-21 15:34:08 -04:00
id: chatPage
2019-03-21 23:28:14 -04:00
spacing: 0
onFocusChanged: sendBox.setFocus()
RoomHeader {
displayName: roomInfo.displayName
topic: roomInfo.topic
}
MessageList {}
2019-04-21 10:44:04 -04:00
2019-04-14 16:12:07 -04:00
TypingUsersBar {}
2019-04-21 10:44:04 -04:00
InviteBanner {
visible: roomInfo.category === "Invites"
inviter: roomInfo.inviter
2019-04-21 10:44:04 -04:00
}
SendBox {
id: sendBox
visible: roomInfo.category === "Rooms"
}
LeftBanner {
visible: roomInfo.category === "Left"
leftEvent: roomInfo.leftEvent
2019-04-21 10:44:04 -04:00
}
2019-03-21 23:28:14 -04:00
}