From f0541c90d4ddf9b7b168f4a32fd524d671d49f4a Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Wed, 4 Nov 2020 10:39:53 -0300 Subject: [PATCH] [FIX] 'Send to channel' when replying as a quote (#2606) Co-authored-by: Diego Mello --- app/containers/MessageBox/index.js | 4 ++-- app/views/RoomView/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/containers/MessageBox/index.js b/app/containers/MessageBox/index.js index 8da731b1..1b99166b 100644 --- a/app/containers/MessageBox/index.js +++ b/app/containers/MessageBox/index.js @@ -856,9 +856,9 @@ class MessageBox extends Component { renderSendToChannel = () => { const { tshow } = this.state; - const { theme, tmid, replying } = this.props; + const { theme, tmid, replyWithMention } = this.props; - if (!tmid && !replying) { + if (!tmid && !replyWithMention) { return null; } return ( diff --git a/app/views/RoomView/index.js b/app/views/RoomView/index.js index a12c5227..7a7f7d9b 100644 --- a/app/views/RoomView/index.js +++ b/app/views/RoomView/index.js @@ -552,7 +552,7 @@ class RoomView extends React.Component { } onReplyCancel = () => { - this.setState({ selectedMessage: {}, replying: false }); + this.setState({ selectedMessage: {}, replying: false, replyWithMention: false }); } onReactionInit = (message) => {