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(external-api): add useRawKeys param for participant properties

Hugo Lavernhec9971d6a909a
diff --git a/conference.js b/conference.js
index b497d6b5b0..ae6e928bd2 100644
--- a/conference.js
+++ b/conference.js
@@ -951,16 +951,17 @@ export default {
* Sets multiple properties for the local participant in a single presence update.
*
* @param {Object} properties - Object of property names to values.
+ * @param {boolean} [useRawKeys] - Skip the "jitsi_participant_" prefix when true.
* @returns {void}
*/
- setLocalParticipantProperties(properties) {
+ setLocalParticipantProperties(properties, useRawKeys = false) {
if (!room) {
logger.warn('Not setting participant properties, conference not initialized');
return;
}
- room.setLocalParticipantProperties(properties);
+ room.setLocalParticipantProperties(properties, useRawKeys);
},
/**
diff --git a/modules/API/API.js b/modules/API/API.js
index 15ffd82a1d..3560178636 100755
--- a/modules/API/API.js
+++ b/modules/API/API.js
@@ -426,8 +426,8 @@ function initCommands() {
sendAnalytics(createApiEvent('largevideo.participant.set'));
dispatch(selectParticipantInLargeVideo(participant.id));
},
- 'set-participant-properties': properties => {
- APP.conference.setLocalParticipantProperties(properties);
+ 'set-participant-properties': (properties, useRawKeys = false) => {
+ APP.conference.setLocalParticipantProperties(properties, useRawKeys);
},
'set-participant-volume': (participantId, volume) => {
APP.store.dispatch(setVolume(participantId, volume));