mirror of
https://github.com/elk-zone/elk
synced 2025-01-19 05:42:50 +09:00
fix: allow logout without push notifications (#856)
This commit is contained in:
parent
0bf76fdf86
commit
31ae413da4
@ -183,6 +183,9 @@ export function getUsersIndexByUserId(userId: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function removePushNotificationData(user: UserLogin, fromSWPushManager = true) {
|
export async function removePushNotificationData(user: UserLogin, fromSWPushManager = true) {
|
||||||
|
if (!user.pushSubscription)
|
||||||
|
return
|
||||||
|
|
||||||
// clear push subscription
|
// clear push subscription
|
||||||
user.pushSubscription = undefined
|
user.pushSubscription = undefined
|
||||||
const { acct } = user.account
|
const { acct } = user.account
|
||||||
|
Loading…
Reference in New Issue
Block a user