Disable creating polls within threads (#7914)
This commit is contained in:
parent
7e4b856ec3
commit
5f8441216c
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue