Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix tile soft crash in ReplyInThreadButton (#9300)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Sep 20, 2022
1 parent 06c4ba3 commit 9076152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/context_menus/MessageContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit 9076152

Please sign in to comment.