fix: allow logout without push notifications (#856)
parent
0bf76fdf86
commit
31ae413da4
|
@ -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 New Issue