mirror of https://github.com/vector-im/riot-web
Fix tile soft crash in ReplyInThreadButton (#9300)
parent
06c4ba32cd
commit
9076152f79
|
@ -73,7 +73,7 @@ const ReplyInThreadButton = ({ mxEvent, closeMenu }: IReplyInThreadButton) => {
|
||||||
const relationType = mxEvent?.getRelation()?.rel_type;
|
const relationType = mxEvent?.getRelation()?.rel_type;
|
||||||
|
|
||||||
// Can't create a thread from an event with an existing relation
|
// 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 => {
|
const onClick = (): void => {
|
||||||
if (!localStorage.getItem("mx_seen_feature_thread")) {
|
if (!localStorage.getItem("mx_seen_feature_thread")) {
|
||||||
|
|
Loading…
Reference in New Issue