fix(chat) Only display private message dialog for active participants (#13708)

pull/13709/head jitsi-meet_8896
Robert Pintilii 2 years ago committed by GitHub
parent e2a02f4b21
commit f6e2abdf01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      react/features/chat/middleware.ts

@ -130,7 +130,10 @@ MiddlewareRegistry.register(store => next => action => {
// recipient. This logic tries to mitigate this risk.
const shouldSendPrivateMessageTo = _shouldSendPrivateMessageTo(state, action);
if (shouldSendPrivateMessageTo) {
const participantExists = shouldSendPrivateMessageTo
&& getParticipantById(state, shouldSendPrivateMessageTo);
if (shouldSendPrivateMessageTo && participantExists) {
dispatch(openDialog(ChatPrivacyDialog, {
message: action.message,
participantID: shouldSendPrivateMessageTo

Loading…
Cancel
Save