Merge pull request #21465 from germanocaumo/fix-meeting-metadata
fix(client): convert meeting metadata to expected format
This commit is contained in:
commit
9001a7102b
@ -17,7 +17,12 @@ window.addEventListener('graphqlSubscription', (e) => {
|
||||
const { data } = response;
|
||||
if (data) {
|
||||
const { metadata = [], voiceSettings } = data.meeting[0];
|
||||
settings(metadata);
|
||||
// convert metadata format to { key: value }
|
||||
const result = metadata.reduce((acc, item) => {
|
||||
acc[item.name] = item.value;
|
||||
return acc;
|
||||
}, {});
|
||||
settings(result);
|
||||
voiceConf(voiceSettings.voiceConf);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user