mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-25 12:35:01 +01:00
Merge branch 'bwindels/calls' into thirdroom/dev
This commit is contained in:
commit
fdd067038d
@ -326,16 +326,12 @@ export class GroupCall extends EventEmitter<{change: never}> {
|
|||||||
};
|
};
|
||||||
callsInfo.push(callInfo);
|
callsInfo.push(callInfo);
|
||||||
}
|
}
|
||||||
const devicesInfo = callInfo["m.devices"];
|
callInfo["m.devices"] = callInfo["m.devices"].filter(d => d["device_id"] !== this.options.ownDeviceId);
|
||||||
let deviceInfo = devicesInfo.find(d => d["device_id"] === this.options.ownDeviceId);
|
callInfo["m.devices"].push({
|
||||||
if (!deviceInfo) {
|
["device_id"]: this.options.ownDeviceId,
|
||||||
deviceInfo = {
|
["session_id"]: this.options.sessionId,
|
||||||
["device_id"]: this.options.ownDeviceId,
|
feeds: [{purpose: "m.usermedia"}]
|
||||||
["session_id"]: this.options.sessionId,
|
});
|
||||||
feeds: [{purpose: "m.usermedia"}]
|
|
||||||
};
|
|
||||||
devicesInfo.push(deviceInfo);
|
|
||||||
}
|
|
||||||
return stateContent;
|
return stateContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user