Merge pull request #3377 from matrix-org/bwindels/cider-noemptymsg
New composer: dont allow sending empty messagespull/21833/head
commit
eaed07fcbf
|
@ -203,6 +203,9 @@ export default class SendMessageComposer extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
_sendMessage() {
|
_sendMessage() {
|
||||||
|
if (this.model.isEmpty) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!containsEmote(this.model) && this._isSlashCommand()) {
|
if (!containsEmote(this.model) && this._isSlashCommand()) {
|
||||||
this._runSlashCommand();
|
this._runSlashCommand();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue