diff --git a/src/api/layers/listener.layer.ts b/src/api/layers/listener.layer.ts index 59bb1ac60..249e01f25 100644 --- a/src/api/layers/listener.layer.ts +++ b/src/api/layers/listener.layer.ts @@ -188,7 +188,7 @@ export class ListenerLayer extends ProfileLayer { } try { if (!window['onPresenceChanged'].exposed) { - window.WAPI.onPresenceChanged(window['onPresenceChanged']); + WPP.on('chat.presence_change', window['onPresenceChanged']); window['onPresenceChanged'].exposed = true; } } catch (error) {