feat(external-api) set `privateMessage` flag on `incoming-message`
This commit is contained in:
parent
12877c7fce
commit
1196ede961
|
@ -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…
Reference in New Issue