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}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
notifyReceivedChatMessage(
|
notifyReceivedChatMessage(
|
||||||
{ body, id, nick, ts }: {
|
{ body, id, nick, privateMessage, ts }: {
|
||||||
body: *, id: string, nick: string, ts: *
|
body: *, id: string, nick: string, privateMessage: boolean, ts: *
|
||||||
} = {}) {
|
} = {}) {
|
||||||
if (APP.conference.isLocalId(id)) {
|
if (APP.conference.isLocalId(id)) {
|
||||||
return;
|
return;
|
||||||
|
@ -604,6 +604,7 @@ class API {
|
||||||
from: id,
|
from: id,
|
||||||
message: body,
|
message: body,
|
||||||
nick,
|
nick,
|
||||||
|
privateMessage,
|
||||||
stamp: ts
|
stamp: ts
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -247,6 +247,7 @@ function _handleReceivedMessage({ dispatch, getState }, { id, message, privateMe
|
||||||
body: message,
|
body: message,
|
||||||
id,
|
id,
|
||||||
nick: displayName,
|
nick: displayName,
|
||||||
|
privateMessage,
|
||||||
ts: timestamp
|
ts: timestamp
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue