From 70b15103aacddb12b813452178b9578a66b99851 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 26 Feb 2021 14:19:18 +0100 Subject: [PATCH] Disable chatbox if we're not allowed to send messages Fix #271 --- imports/NeoChat/Component/ChatTextInput.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/imports/NeoChat/Component/ChatTextInput.qml b/imports/NeoChat/Component/ChatTextInput.qml index 9ecfa89ea..c45c1fbe1 100644 --- a/imports/NeoChat/Component/ChatTextInput.qml +++ b/imports/NeoChat/Component/ChatTextInput.qml @@ -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 : ""