|
|
@ -76,12 +76,12 @@ MiddlewareRegistry.register(store => next => action => { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// Sending the message if privacy notice doesn't need to be shown.
|
|
|
|
// Sending the message if privacy notice doesn't need to be shown.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { privateMessageRecipient } = state['features/chat']; |
|
|
|
|
|
|
|
|
|
|
|
if (typeof APP !== 'undefined') { |
|
|
|
if (typeof APP !== 'undefined') { |
|
|
|
APP.API.notifySendingChatMessage(action.message); |
|
|
|
APP.API.notifySendingChatMessage(action.message, Boolean(privateMessageRecipient)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const { privateMessageRecipient } = state['features/chat']; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (privateMessageRecipient) { |
|
|
|
if (privateMessageRecipient) { |
|
|
|
conference.sendPrivateTextMessage(privateMessageRecipient.id, action.message); |
|
|
|
conference.sendPrivateTextMessage(privateMessageRecipient.id, action.message); |
|
|
|
_persistSentPrivateMessage(store, privateMessageRecipient.id, action.message); |
|
|
|
_persistSentPrivateMessage(store, privateMessageRecipient.id, action.message); |
|
|
|