Add InviteOffer component

This commit is contained in:
miruka
2019-04-21 10:44:04 -04:00
parent e2d7f18bb8
commit bbf29e29b1
10 changed files with 136 additions and 9 deletions

View File

@@ -3,23 +3,35 @@ import QtQuick.Controls 2.2
import QtQuick.Layouts 1.4
ColumnLayout {
property var userId: null
property var roomId: null
property string userId: ""
property string roomId: ""
property var roomInfo:
readonly property var roomInfo:
Backend.models.rooms.get(userId).getWhere("roomId", roomId)
property bool isInvite: roomInfo.category === "Invites"
id: chatPage
spacing: 0
onFocusChanged: sendBox.setFocus()
RoomHeader {
id: roomHeader
displayName: roomInfo.displayName
topic: roomInfo.topic
}
MessageList {}
TypingUsersBar {}
SendBox { id: sendBox }
InviteOffer {
visible: isInvite
}
SendBox {
id: sendBox
visible: ! isInvite
}
}