diff --git a/openvidu-browser/src/OpenVidu/Session.ts b/openvidu-browser/src/OpenVidu/Session.ts index 0f5bc0f6..3026b7a9 100644 --- a/openvidu-browser/src/OpenVidu/Session.ts +++ b/openvidu-browser/src/OpenVidu/Session.ts @@ -1083,7 +1083,7 @@ export class Session extends EventDispatcher { .then(connection => { logger.info('Filter event dispatched'); const stream: Stream = connection.stream!; - stream.filter!.handlers[response.eventType](new FilterEvent(stream.filter!, response.eventType, response.data)); + stream.filter!.handlers.get(response.eventType)?.call(this, new FilterEvent(stream.filter!, response.eventType, response.data)); }); }