Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(chat): prevent empty messages
Leonard Kim81d4f694b710
diff --git a/react/features/chat/components/web/ChatInput.js b/react/features/chat/components/web/ChatInput.jsindex f5085d0981..e6244cb2ff 100644--- a/react/features/chat/components/web/ChatInput.js+++ b/react/features/chat/components/web/ChatInput.js@@ -157,9 +157,13 @@ class ChatInput extends Component<Props, State> {&& event.shiftKey === false) {event.preventDefault();- this.props.dispatch(sendMessage(this.state.message));+ const trimmed = this.state.message.trim();- this.setState({ message: '' });+ if (trimmed) {+ this.props.dispatch(sendMessage(trimmed));++ this.setState({ message: '' });+ }}}