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

Commit

Permalink
fix logic to reply in thread tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Germain Souquet committed Apr 5, 2022
1 parent 649539e commit 7ac3f57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/views/messages/MessageActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ export default class MessageActionBar extends React.PureComponent<IMessageAction
key="cancel"
/>;

const hasARelation = this.props.mxEvent?.getRelation()?.rel_type !== RelationType.Thread;
const relationType = this.props.mxEvent?.getRelation()?.rel_type;
const hasARelation = !!relationType && relationType !== RelationType.Thread;
const firstTimeSeeingThreads = localStorage.getItem("mx_seen_feature_thread") === null &&
!SettingsStore.getValue("feature_thread");
const threadTooltipButton = <CardContext.Consumer key="thread">
Expand Down

0 comments on commit 7ac3f57

Please sign in to comment.