You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Missed a reference to callList
This commit is contained in:
@@ -336,6 +336,8 @@ export function MatrixClient(opts) {
|
||||
if (call) {
|
||||
this._callEventHandler = new CallEventHandler(this);
|
||||
this._supportsVoip = true;
|
||||
} else {
|
||||
this._callEventHandler = null;
|
||||
}
|
||||
this._syncingRetry = null;
|
||||
this._syncApi = null;
|
||||
@@ -373,8 +375,6 @@ export function MatrixClient(opts) {
|
||||
this._clientWellKnown = undefined;
|
||||
this._clientWellKnownPromise = undefined;
|
||||
|
||||
this._callEventHandler = null;
|
||||
|
||||
// The SDK doesn't really provide a clean way for events to recalculate the push
|
||||
// actions for themselves, so we have to kinda help them out when they are encrypted.
|
||||
// We do this so that push rules are correctly executed on events in their decrypted
|
||||
|
||||
@@ -1154,7 +1154,8 @@ export class MatrixCall extends EventEmitter {
|
||||
|
||||
private async placeCallWithConstraints(constraints: MediaStreamConstraints) {
|
||||
logger.log("Getting user media with constraints", constraints);
|
||||
this.client.callList[this.callId] = this;
|
||||
// XXX Find a better way to do this
|
||||
this.client._callEventHandler.calls.set(this.callId, this);
|
||||
this.setState(CallState.WaitLocalMedia);
|
||||
this.direction = CallDirection.Outbound;
|
||||
this.config = constraints;
|
||||
|
||||
Reference in New Issue
Block a user