Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(chat): Fixes sending message after system message.

damencho9bb1c36508d0
diff --git a/react/features/chat/middleware.ts b/react/features/chat/middleware.ts
index 345519878e..cf50200945 100644
--- a/react/features/chat/middleware.ts
+++ b/react/features/chat/middleware.ts
@@ -744,6 +744,11 @@ function _shouldSendPrivateMessageTo(state: IReduxState, action: AnyAction) {
}
if (lastMessage.privateMessage) {
+ if (!lastMessage.participantId) {
+ // this is a system message we can ignore
+ return undefined;
+ }
+
// We show the notice if the last received message was private.
return {
id: lastMessage.participantId,