Merge pull request #3377 from matrix-org/bwindels/cider-noemptymsg
New composer: dont allow sending empty messages
This commit is contained in:
commit
eaed07fcbf
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue