mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
use session id from member event, and also send it for other party
This commit is contained in:
parent
1b0abebe8f
commit
302d4bc02d
@ -330,6 +330,7 @@ export class GroupCall extends EventEmitter<{change: never}> {
|
|||||||
if (!deviceInfo) {
|
if (!deviceInfo) {
|
||||||
deviceInfo = {
|
deviceInfo = {
|
||||||
["device_id"]: this.options.ownDeviceId,
|
["device_id"]: this.options.ownDeviceId,
|
||||||
|
["session_id"]: this.options.sessionId,
|
||||||
feeds: [{purpose: "m.usermedia"}]
|
feeds: [{purpose: "m.usermedia"}]
|
||||||
};
|
};
|
||||||
devicesInfo.push(deviceInfo);
|
devicesInfo.push(deviceInfo);
|
||||||
|
@ -138,6 +138,11 @@ export class Member {
|
|||||||
/** @internal */
|
/** @internal */
|
||||||
handleDeviceMessage(message: SignallingMessage<MGroupCallBase>, deviceId: string, syncLog: ILogItem) {
|
handleDeviceMessage(message: SignallingMessage<MGroupCallBase>, deviceId: string, syncLog: ILogItem) {
|
||||||
syncLog.refDetached(this.logItem);
|
syncLog.refDetached(this.logItem);
|
||||||
|
const destSessionId = message.content.dest_session_id;
|
||||||
|
if (destSessionId !== this.options.sessionId) {
|
||||||
|
this.logItem.log({l: "ignoring to_device event with wrong session_id", destSessionId, type: message.type});
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (message.type === EventType.Invite && !this.peerCall) {
|
if (message.type === EventType.Invite && !this.peerCall) {
|
||||||
this.peerCall = this._createPeerCall(message.content.call_id);
|
this.peerCall = this._createPeerCall(message.content.call_id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user