feat(external-api) set `privateMessage` flag on `incoming-message`

pull/8406/head jitsi-meet_5411
hmuresan 4 years ago committed by Saúl Ibarra Corretgé
parent 12877c7fce
commit 1196ede961
  1. 5
      modules/API/API.js
  2. 1
      react/features/chat/middleware.js

@ -592,8 +592,8 @@ class API {
* @returns {void}
*/
notifyReceivedChatMessage(
{ body, id, nick, ts }: {
body: *, id: string, nick: string, ts: *
{ body, id, nick, privateMessage, ts }: {
body: *, id: string, nick: string, privateMessage: boolean, ts: *
} = {}) {
if (APP.conference.isLocalId(id)) {
return;
@ -604,6 +604,7 @@ class API {
from: id,
message: body,
nick,
privateMessage,
stamp: ts
});
}

@ -247,6 +247,7 @@ function _handleReceivedMessage({ dispatch, getState }, { id, message, privateMe
body: message,
id,
nick: displayName,
privateMessage,
ts: timestamp
});

Loading…
Cancel
Save