Skip to content

Commit

Permalink
fix: Messages containing only whitespace are sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
KhushamBansal authored Jan 11, 2025
1 parent cd02ef6 commit 9ea1629
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/platform/web/ui/session/room/MessageComposer.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ export class MessageComposer extends TemplateView {
// to prevent the user from sending the message
// every time they hit enter while it's still enqueuing.
const {value} = this._input;
if (!value || !value.trim()) {
return;
}
const restoreValue = () => {
this._input.value = value;
this._adjustHeight();
Expand Down

0 comments on commit 9ea1629

Please sign in to comment.