From c9bf7da62965bd03873963bef8a5c49cd22ee7ac Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Fri, 21 Oct 2022 10:35:54 +0200 Subject: [PATCH] Fix send message on enter --- src/components/views/rooms/MessageComposer.tsx | 2 +- .../views/rooms/wysiwyg_composer/SendWysiwygComposer.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/MessageComposer.tsx b/src/components/views/rooms/MessageComposer.tsx index b94fcdddb1..60bc5ee641 100644 --- a/src/components/views/rooms/MessageComposer.tsx +++ b/src/components/views/rooms/MessageComposer.tsx @@ -415,7 +415,7 @@ class MessageComposer extends React.Component { this.sendMessage} + onSend={this.sendMessage} />, ); } else { diff --git a/src/components/views/rooms/wysiwyg_composer/SendWysiwygComposer.tsx b/src/components/views/rooms/wysiwyg_composer/SendWysiwygComposer.tsx index 4a7cfb65a0..2a485d9975 100644 --- a/src/components/views/rooms/wysiwyg_composer/SendWysiwygComposer.tsx +++ b/src/components/views/rooms/wysiwyg_composer/SendWysiwygComposer.tsx @@ -23,7 +23,7 @@ import { WysiwygComposer } from './components/WysiwygComposer'; interface SendWysiwygComposerProps { disabled?: boolean; onChange: (content: string) => void; - onSend(): () => void; + onSend: () => void; } interface ContentProps { disabled: boolean;