You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Fix tile soft crash in ReplyInThreadButton (#9300)
This commit is contained in:
committed by
GitHub
parent
06c4ba32cd
commit
9076152f79
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user