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

Fix creating polls outside of threads #7711

Merged
merged 1 commit into from
Feb 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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