Skip to content

Commit

Permalink
Unset push token on upon logout (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
duogenesis authored Dec 9, 2024
1 parent c166a8c commit 1b93a41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xmpp/xmpp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,8 @@ const logout = async () => {
return;
}

await registerPushToken(null);

_xmpp.current.client.reconnect.stop();
await _xmpp.current.client.stop().catch(console.warn);

Expand Down

0 comments on commit 1b93a41

Please sign in to comment.