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

Commit

Permalink
Fix creating polls outside of threads (#7711)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Feb 3, 2022
1 parent 9adfdb8 commit 226ccfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/rooms/MessageComposerButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class PollButton extends React.PureComponent<IPollButtonProps> {
},
);
} else {
const threadId = this.props.relation.rel_type === RelationType.Thread
const threadId = this.props.relation?.rel_type === RelationType.Thread
? this.props.relation.event_id
: null;

Expand Down

0 comments on commit 226ccfc

Please sign in to comment.