update incoming call event handler
This commit is contained in:
parent
e2b5d161cb
commit
0305fe7974
1 changed files with 10 additions and 18 deletions
|
|
@ -144,9 +144,6 @@ export class ConferenceCall extends EventEmitter {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// HACK: Horrible hack necessary because callHandler sets opponentMember
|
|
||||||
// asynchronously before emitting the Call.incoming event.
|
|
||||||
const pollOpponentMember = () => {
|
|
||||||
if (call.opponentMember) {
|
if (call.opponentMember) {
|
||||||
const userId = call.opponentMember.userId;
|
const userId = call.opponentMember.userId;
|
||||||
this._addCall(call, userId);
|
this._addCall(call, userId);
|
||||||
|
|
@ -157,11 +154,6 @@ export class ConferenceCall extends EventEmitter {
|
||||||
call.answer();
|
call.answer();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(pollOpponentMember, 100);
|
|
||||||
};
|
|
||||||
|
|
||||||
pollOpponentMember();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_addCall(call, userId) {
|
_addCall(call, userId) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue