Use isComposerEmpty for send button

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-02-12 15:42:30 +01:00
parent 50b0a78132
commit 35c0cb99d0
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

@ -489,7 +489,7 @@ export default class MessageComposer extends React.Component {
} }
} }
if (this.state.showSendButton) { if (!this.state.isComposerEmpty) {
controls.push( controls.push(
<SendButton onClick={this.sendMessage} />, <SendButton onClick={this.sendMessage} />,
); );