mirror of https://github.com/vector-im/riot-web
Use isComposerEmpty for send button
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
50b0a78132
commit
35c0cb99d0
|
@ -489,7 +489,7 @@ export default class MessageComposer extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
if (this.state.showSendButton) {
|
||||
if (!this.state.isComposerEmpty) {
|
||||
controls.push(
|
||||
<SendButton onClick={this.sendMessage} />,
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue