From 2dd6dddc676d6d1dd32ef6909443b1da1e212ae2 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk <3636685+Palid@users.noreply.github.com> Date: Thu, 14 Oct 2021 17:37:56 +0200 Subject: [PATCH] Fix incorrect liveTimeline reference (#6948) Fixes https://github.com/vector-im/element-web/issues/19400 --- src/components/views/rooms/SendMessageComposer.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/SendMessageComposer.tsx b/src/components/views/rooms/SendMessageComposer.tsx index 35a028aadc..1a8315be7b 100644 --- a/src/components/views/rooms/SendMessageComposer.tsx +++ b/src/components/views/rooms/SendMessageComposer.tsx @@ -143,6 +143,8 @@ interface ISendMessageComposerProps extends MatrixClientProps { @replaceableComponent("views.rooms.SendMessageComposer") export class SendMessageComposer extends React.Component { static contextType = RoomContext; + public context!: React.ContextType; + private readonly prepareToEncrypt?: DebouncedFunc<() => void>; private readonly editorRef = createRef(); private model: EditorModel = null; @@ -279,7 +281,7 @@ export class SendMessageComposer extends React.Component= 0; i--) {