mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Merge pull request #3377 from matrix-org/bwindels/cider-noemptymsg
New composer: dont allow sending empty messages
This commit is contained in:
commit
eaed07fcbf
@ -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…
Reference in New Issue
Block a user