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

Commit 226ccfc

Browse files
authored
Fix creating polls outside of threads (#7711)
1 parent 9adfdb8 commit 226ccfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/rooms/MessageComposerButtons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class PollButton extends React.PureComponent<IPollButtonProps> {
321321
},
322322
);
323323
} else {
324-
const threadId = this.props.relation.rel_type === RelationType.Thread
324+
const threadId = this.props.relation?.rel_type === RelationType.Thread
325325
? this.props.relation.event_id
326326
: null;
327327

0 commit comments

Comments
 (0)