2020-05-29 16:22:53 -04:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Layouts 1.12
|
|
|
|
import "../../../Base"
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
property alias eventList: messageArea.eventList
|
2020-06-05 05:42:12 -04:00
|
|
|
readonly property bool hasFocus: messageArea.activeFocus
|
2020-05-29 16:22:53 -04:00
|
|
|
|
|
|
|
function takeFocus() { messageArea.forceActiveFocus() }
|
|
|
|
|
|
|
|
|
|
|
|
implicitHeight:
|
|
|
|
Math.max(theme.baseElementsHeight, messageArea.implicitHeight)
|
|
|
|
|
|
|
|
color: theme.chat.composer.background
|
|
|
|
|
|
|
|
HRowLayout {
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
HUserAvatar {
|
|
|
|
id: avatar
|
|
|
|
radius: 0
|
|
|
|
userId: messageArea.writingUserId
|
|
|
|
|
|
|
|
mxc:
|
|
|
|
messageArea.writingUserInfo ?
|
|
|
|
messageArea.writingUserInfo.avatar_url :
|
|
|
|
""
|
|
|
|
|
|
|
|
displayName:
|
|
|
|
messageArea.writingUserInfo ?
|
|
|
|
messageArea.writingUserInfo.display_name :
|
|
|
|
""
|
|
|
|
}
|
|
|
|
|
2020-06-22 13:57:49 -04:00
|
|
|
HScrollView {
|
2020-05-29 16:22:53 -04:00
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
2020-07-09 22:17:15 -04:00
|
|
|
MessageArea { id: messageArea }
|
2020-05-29 16:22:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
UploadButton {
|
|
|
|
Layout.fillHeight: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|