mirror of
https://github.com/element-hq/element-web
synced 2024-10-25 20:26:51 +03:00
dont allow sending empty messages
This commit is contained in:
parent
c219f925c6
commit
b9cb22e153
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…
Reference in a new issue