mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-05 00:19:59 +00:00
fix: allow logout without push notifications (#856)
This commit is contained in:
parent
0bf76fdf86
commit
31ae413da4
1 changed files with 3 additions and 0 deletions
|
@ -183,6 +183,9 @@ export function getUsersIndexByUserId(userId: string) {
|
|||
}
|
||||
|
||||
export async function removePushNotificationData(user: UserLogin, fromSWPushManager = true) {
|
||||
if (!user.pushSubscription)
|
||||
return
|
||||
|
||||
// clear push subscription
|
||||
user.pushSubscription = undefined
|
||||
const { acct } = user.account
|
||||
|
|
Loading…
Reference in a new issue