Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

hmuresan1196ede961c1
diff --git a/modules/API/API.js b/modules/API/API.js
index 1ea7a77548..34598183e7 100644
--- a/modules/API/API.js
+++ b/modules/API/API.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
});
}
diff --git a/react/features/chat/middleware.js b/react/features/chat/middleware.js
index 2e234c73d5..398a42d360 100644
--- a/react/features/chat/middleware.js
+++ b/react/features/chat/middleware.js
@@ -247,6 +247,7 @@ function _handleReceivedMessage({ dispatch, getState }, { id, message, privateMe
body: message,
id,
nick: displayName,
+ privateMessage,
ts: timestamp
});