From 9076152f79f4adf1ad7f751eb1268b28516d1284 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 20 Sep 2022 17:39:07 +0100 Subject: [PATCH] Fix tile soft crash in ReplyInThreadButton (#9300) --- src/components/views/context_menus/MessageContextMenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/context_menus/MessageContextMenu.tsx b/src/components/views/context_menus/MessageContextMenu.tsx index 9452fa2826..eca720412d 100644 --- a/src/components/views/context_menus/MessageContextMenu.tsx +++ b/src/components/views/context_menus/MessageContextMenu.tsx @@ -73,7 +73,7 @@ const ReplyInThreadButton = ({ mxEvent, closeMenu }: IReplyInThreadButton) => { const relationType = mxEvent?.getRelation()?.rel_type; // Can't create a thread from an event with an existing relation - if (Boolean(relationType) && relationType !== RelationType.Thread) return; + if (Boolean(relationType) && relationType !== RelationType.Thread) return null; const onClick = (): void => { if (!localStorage.getItem("mx_seen_feature_thread")) {