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