From 5f8441216c7efd096cb5ed96d7d931d15ac509d4 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 28 Feb 2022 15:34:30 +0000 Subject: [PATCH] Disable creating polls within threads (#7914) --- src/components/views/rooms/MessageComposerButtons.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/views/rooms/MessageComposerButtons.tsx b/src/components/views/rooms/MessageComposerButtons.tsx index 0dbeacc719..a66422bbab 100644 --- a/src/components/views/rooms/MessageComposerButtons.tsx +++ b/src/components/views/rooms/MessageComposerButtons.tsx @@ -337,6 +337,9 @@ class PollButton extends React.PureComponent { }; render() { + // do not allow sending polls within threads at this time + if (this.props.relation?.rel_type === RelationType.Thread) return null; + return (