Fix tile soft crash in ReplyInThreadButton (#9300)

pull/28217/head
Michael Telatynski 2022-09-20 17:39:07 +01:00 committed by GitHub
parent 06c4ba32cd
commit 9076152f79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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")) {