Use CallHandler correctly

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Š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

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.