mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-06-01 07:41:44 +03:00
Fix glare
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
cdc87d371c
commit
082169a756
@ -128,7 +128,7 @@ export class CallEventHandler {
|
|||||||
return type.startsWith("m.call.") || type.startsWith("org.matrix.call.");
|
return type.startsWith("m.call.") || type.startsWith("org.matrix.call.");
|
||||||
}
|
}
|
||||||
|
|
||||||
private handleCallEvent(event: MatrixEvent) {
|
private async handleCallEvent(event: MatrixEvent) {
|
||||||
const content = event.getContent();
|
const content = event.getContent();
|
||||||
const type = event.getType() as EventType;
|
const type = event.getType() as EventType;
|
||||||
const weSentTheEvent = event.getSender() === this.client.credentials.userId;
|
const weSentTheEvent = event.getSender() === this.client.credentials.userId;
|
||||||
@ -169,7 +169,7 @@ export class CallEventHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
call.callId = content.call_id;
|
call.callId = content.call_id;
|
||||||
call.initWithInvite(event);
|
await call.initWithInvite(event);
|
||||||
this.calls.set(call.callId, call);
|
this.calls.set(call.callId, call);
|
||||||
|
|
||||||
// if we stashed candidate events for that call ID, play them back now
|
// if we stashed candidate events for that call ID, play them back now
|
||||||
|
Loading…
x
Reference in New Issue
Block a user