Cleanup connection handling in QML

Consistently pass connection objects to files that need them instead of randomly using Controller.activeConnection in some of them
This commit is contained in:
Tobias Fella
2023-09-12 17:10:16 +02:00
committed by Carl Schwan
parent 6439fa48f9
commit 5e80715898
37 changed files with 203 additions and 72 deletions

View File

@@ -36,6 +36,8 @@ ColumnLayout {
*/
required property NeoChatRoom currentRoom
required property NeoChatConnection connection
/**
* @brief A message has been sent from the chat bar.
*/
@@ -62,6 +64,8 @@ ColumnLayout {
ChatBar {
id: chatBar
connection: root.connection
visible: root.currentRoom.canSendEvent("m.room.message")
Layout.fillWidth: true