Use CallHandler correctly

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-04-28 13:33:15 +02:00
parent 653591e806
commit b6324a816f
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ describe('CallHandler', () => {
let callRoomChangeEventCount = 0;
const roomChangePromise = new Promise<void>(resolve => {
CallHandler.sharedInstance().addListener(CallHandlerEvent.CallChangeRoom, () => {
callHandler.addListener(CallHandlerEvent.CallChangeRoom, () => {
++callRoomChangeEventCount;
resolve();
});
@ -200,7 +200,7 @@ describe('CallHandler', () => {
await roomChangePromise;
dis.unregister(dispatchHandle);
CallHandler.sharedInstance().removeAllListeners();
callHandler.removeAllListeners();
// If everything's gone well, we should have seen only one room change
// event and the call should now be in user 3's room.