Disable chatbox if we're not allowed to send messages

Fix #271
This commit is contained in:
Carl Schwan
2021-02-26 14:19:18 +01:00
parent 481a2e3681
commit 70b15103aa

View File

@@ -338,6 +338,7 @@ ToolBar {
leftPadding: Kirigami.Units.smallSpacing
selectByMouse: true
verticalAlignment: TextEdit.AlignVCenter
enabled: room.canSendEvent("m.room.message")
text: currentRoom != null ? currentRoom.cachedInput : ""