2019-03-22 14:28:14 +11:00
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Controls 2.2
|
|
|
|
import QtQuick.Layouts 1.4
|
|
|
|
|
|
|
|
ColumnLayout {
|
2019-04-22 00:44:04 +10:00
|
|
|
property string userId: ""
|
|
|
|
property string roomId: ""
|
2019-03-22 14:28:14 +11:00
|
|
|
|
2019-04-22 00:44:04 +10:00
|
|
|
readonly property var roomInfo:
|
2019-04-21 07:36:21 +10:00
|
|
|
Backend.models.rooms.get(userId).getWhere("roomId", roomId)
|
2019-04-15 06:12:07 +10:00
|
|
|
|
2019-04-21 07:45:51 +10:00
|
|
|
id: chatPage
|
2019-03-22 14:28:14 +11:00
|
|
|
spacing: 0
|
|
|
|
onFocusChanged: sendBox.setFocus()
|
|
|
|
|
2019-04-21 07:36:21 +10:00
|
|
|
RoomHeader {
|
|
|
|
displayName: roomInfo.displayName
|
|
|
|
topic: roomInfo.topic
|
|
|
|
}
|
|
|
|
|
2019-03-26 20:52:43 +11:00
|
|
|
MessageList {}
|
2019-04-22 00:44:04 +10:00
|
|
|
|
2019-04-15 06:12:07 +10:00
|
|
|
TypingUsersBar {}
|
2019-04-22 00:44:04 +10:00
|
|
|
|
2019-04-22 05:20:20 +10:00
|
|
|
InviteBanner {
|
|
|
|
visible: roomInfo.category === "Invites"
|
2019-04-22 01:15:03 +10:00
|
|
|
inviter: roomInfo.inviter
|
2019-04-22 00:44:04 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
SendBox {
|
|
|
|
id: sendBox
|
2019-04-22 05:20:20 +10:00
|
|
|
visible: roomInfo.category === "Rooms"
|
|
|
|
}
|
|
|
|
|
|
|
|
LeftBanner {
|
|
|
|
visible: roomInfo.category === "Left"
|
|
|
|
leftEvent: roomInfo.leftEvent
|
2019-04-22 00:44:04 +10:00
|
|
|
}
|
2019-03-22 14:28:14 +11:00
|
|
|
}
|