Skip to content

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

fix(reactions) Updated payload sent to backend

robertpina6167997d8b2
diff --git a/react/features/base/jwt/middleware.js b/react/features/base/jwt/middleware.js
index a81047f3f9..b9d2f0e2e1 100644
--- a/react/features/base/jwt/middleware.js
+++ b/react/features/base/jwt/middleware.js
@@ -52,7 +52,7 @@ MiddlewareRegistry.register(store => next => action => {
*/
function _overwriteLocalParticipant(
{ dispatch, getState },
- { avatarURL, email, name, features }) {
+ { avatarURL, email, id: jwtId, name, features }) {
let localParticipant;
if ((avatarURL || email || name)
@@ -68,6 +68,9 @@ function _overwriteLocalParticipant(
if (email) {
newProperties.email = email;
}
+ if (jwtId) {
+ newProperties.jwtId = jwtId;
+ }
if (name) {
newProperties.name = name;
}
diff --git a/react/features/reactions/functions.any.js b/react/features/reactions/functions.any.js
index 7e1952c7dd..d2a94eb82a 100644
--- a/react/features/reactions/functions.any.js
+++ b/react/features/reactions/functions.any.js
@@ -55,6 +55,8 @@ export async function sendReactionsWebhook(state: Object, reactions: Array<?stri
const { webhookProxyUrl: url } = state['features/base/config'];
const { conference } = state['features/base/conference'];
const { jwt } = state['features/base/jwt'];
+ const { connection } = state['features/base/connection'];
+ const jid = connection.getJid();
const localParticipant = getLocalParticipant(state);
const headers = {
@@ -68,8 +70,9 @@ export async function sendReactionsWebhook(state: Object, reactions: Array<?stri
sessionId: conference.sessionId,
submitted: Date.now(),
reactions,
- participantId: localParticipant.id,
- participantName: localParticipant.name
+ participantId: localParticipant.jwtId,
+ participantName: localParticipant.name,
+ participantJid: jid
};
if (url) {