diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-11-10 20:51:11 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-11-10 20:51:11 -0500 |
| commit | 91c33501a315abe04aeed54aa27388ce0ad241ce (patch) | |
| tree | 56b7be71cc9811f86f5e59e02358d24bad57c1d2 /ui/routes/(app) | |
| parent | 73d79002fe6018ab12457b37bdaeb76ff2800213 (diff) | |
Push messaging fixes:
* Remove push subscriptions on logout, to trigger a resubscription when logging back in.
* Don't try to call `this.push` when there's no `this` to have a `push` on.
Diffstat (limited to 'ui/routes/(app)')
| -rw-r--r-- | ui/routes/(app)/me/+page.svelte | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/routes/(app)/me/+page.svelte b/ui/routes/(app)/me/+page.svelte index a21d160..afdcbe4 100644 --- a/ui/routes/(app)/me/+page.svelte +++ b/ui/routes/(app)/me/+page.svelte @@ -17,12 +17,15 @@ async function logOut() { const response = await api.logOut(); if (200 <= response.status && response.status < 300) { + await session.push.unsubscribe(); await goto('/login'); } } async function changePassword(currentPassword, newPassword) { await api.changePassword(currentPassword, newPassword); + await session.push.unsubscribe(); + await session.push.resubscribe(); } async function createInvite() { |
