1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

dont allow sending empty messages

This commit is contained in:
Bruno Windels
2019-09-02 14:36:31 +02:00
parent c219f925c6
commit b9cb22e153

View File

@@ -203,6 +203,9 @@ export default class SendMessageComposer extends React.Component {
}
_sendMessage() {
if (this.model.isEmpty) {
return;
}
if (!containsEmote(this.model) && this._isSlashCommand()) {
this._runSlashCommand();
} else {