api: add private message flag to outgoingMessage

This commit is contained in:
Bettenbuk Zoltan
2020-04-01 11:58:48 +02:00
committed by Zoltan Bettenbuk
parent aff6d4b36d
commit feb8fe9e34
2 changed files with 8 additions and 6 deletions
+4 -4
View File
@@ -76,12 +76,12 @@ MiddlewareRegistry.register(store => next => action => {
} else {
// Sending the message if privacy notice doesn't need to be shown.
if (typeof APP !== 'undefined') {
APP.API.notifySendingChatMessage(action.message);
}
const { privateMessageRecipient } = state['features/chat'];
if (typeof APP !== 'undefined') {
APP.API.notifySendingChatMessage(action.message, Boolean(privateMessageRecipient));
}
if (privateMessageRecipient) {
conference.sendPrivateTextMessage(privateMessageRecipient.id, action.message);
_persistSentPrivateMessage(store, privateMessageRecipient.id, action.message);