You've already forked matrix-react-sdk
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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user