Fix getting connection in message edit component

This commit is contained in:
James Graham
2023-09-15 18:35:23 +01:00
parent 78f676d71a
commit 6bf552398e

View File

@@ -11,8 +11,7 @@ import org.kde.neochat 1.0
QQC2.TextArea { QQC2.TextArea {
id: root id: root
property NeoChatRoom room required property NeoChatRoom room
required property NeoChatConnection connection
onRoomChanged: room.chatBoxEditIdChanged.connect(updateEditText) onRoomChanged: room.chatBoxEditIdChanged.connect(updateEditText)
property string messageId property string messageId
@@ -102,7 +101,7 @@ QQC2.TextArea {
height: implicitHeight height: implicitHeight
y: -height - 5 y: -height - 5
z: 10 z: 10
connection: root.connection connection: root.room.connection
chatDocumentHandler: documentHandler chatDocumentHandler: documentHandler
Behavior on height { Behavior on height {
NumberAnimation { NumberAnimation {