Skip to content

Commit

Permalink
fix: Improved onPresenceChanged event
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Jul 11, 2022
1 parent 7eb9e59 commit d71835f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/layers/listener.layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d71835f

Please sign in to comment.