Disable creating polls within threads (#7914)
This commit is contained in:
@@ -337,6 +337,9 @@ class PollButton extends React.PureComponent<IPollButtonProps> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
// do not allow sending polls within threads at this time
|
||||||
|
if (this.props.relation?.rel_type === RelationType.Thread) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CollapsibleButton
|
<CollapsibleButton
|
||||||
className="mx_MessageComposer_button mx_MessageComposer_poll"
|
className="mx_MessageComposer_button mx_MessageComposer_poll"
|
||||||
|
|||||||
Reference in New Issue
Block a user