From 0d401e5796f872a725eea1b0c4a1ca06c5b983bf Mon Sep 17 00:00:00 2001 From: Cyril Gromoff Date: Mon, 2 Sep 2024 15:58:53 +0200 Subject: [PATCH] remove polls when we are in a thread Changelog: fixed --- .../advanced_create_comment.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/webapp/channels/src/components/advanced_create_comment/advanced_create_comment.tsx b/webapp/channels/src/components/advanced_create_comment/advanced_create_comment.tsx index ee855dbafd..335091e911 100644 --- a/webapp/channels/src/components/advanced_create_comment/advanced_create_comment.tsx +++ b/webapp/channels/src/components/advanced_create_comment/advanced_create_comment.tsx @@ -1113,6 +1113,16 @@ class AdvancedCreateComment extends React.PureComponent { ); }); + const additionalControls = []; + if (!this.props.isThreadView) { + additionalControls.push( + ); + } + additionalControls.push(...(pluginItems || []).filter(Boolean)); return (
{ @@ -1174,14 +1184,7 @@ class AdvancedCreateComment extends React.PureComponent { setDraftAsPostType={this.setDraftAsPostType} isSchedulable={true} handleSchedulePost={this.handleSchedulePost} - additionalControls={[ - , - ...(pluginItems || []), - ].filter(Boolean)} + additionalControls={additionalControls} codeBlockOnCtrlEnter={this.props.codeBlockOnCtrlEnter} ctrlSend={this.props.ctrlSend} loadNextMessage={this.loadNextMessage}