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

This commit is contained in:
hmuresan 2021-01-13 13:02:58 +02:00 committed by Saúl Ibarra Corretgé
parent 12877c7fce
commit 1196ede961
2 changed files with 4 additions and 2 deletions

View File

@ -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
});
}

View File

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