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

Commit 7ac3f57

Browse files
author
Germain Souquet
committed
fix logic to reply in thread tooltip
1 parent 649539e commit 7ac3f57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/views/messages/MessageActionBar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ export default class MessageActionBar extends React.PureComponent<IMessageAction
310310
key="cancel"
311311
/>;
312312

313-
const hasARelation = this.props.mxEvent?.getRelation()?.rel_type !== RelationType.Thread;
313+
const relationType = this.props.mxEvent?.getRelation()?.rel_type;
314+
const hasARelation = !!relationType && relationType !== RelationType.Thread;
314315
const firstTimeSeeingThreads = localStorage.getItem("mx_seen_feature_thread") === null &&
315316
!SettingsStore.getValue("feature_thread");
316317
const threadTooltipButton = <CardContext.Consumer key="thread">

0 commit comments

Comments
 (0)