From 2e19f81bd5608e4a0394f3a391f4c11dc028e87d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Fri, 4 Feb 2022 10:36:31 +0100 Subject: [PATCH] Hide composer buttons if we can't send events (#7719) --- src/components/views/rooms/MessageComposer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/MessageComposer.tsx b/src/components/views/rooms/MessageComposer.tsx index 27982d71e2..5ae984975d 100644 --- a/src/components/views/rooms/MessageComposer.tsx +++ b/src/components/views/rooms/MessageComposer.tsx @@ -428,7 +428,7 @@ export default class MessageComposer extends React.Component { permalinkCreator={this.props.permalinkCreator} />
{ controls } - { showLocationButton={!window.electron} showStickersButton={this.state.showStickersButton} toggleButtonMenu={this.toggleButtonMenu} - /> + /> } { showSendButton && (