[FIX] 'Send to channel' when replying as a quote (#2606)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Djorkaeff Alexandre 2020-11-04 10:39:53 -03:00 committed by GitHub
parent a253bc8d5b
commit f0541c90d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -856,9 +856,9 @@ class MessageBox extends Component {
renderSendToChannel = () => { renderSendToChannel = () => {
const { tshow } = this.state; 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 null;
} }
return ( return (

View File

@ -552,7 +552,7 @@ class RoomView extends React.Component {
} }
onReplyCancel = () => { onReplyCancel = () => {
this.setState({ selectedMessage: {}, replying: false }); this.setState({ selectedMessage: {}, replying: false, replyWithMention: false });
} }
onReactionInit = (message) => { onReactionInit = (message) => {