Fix deleting push sub on logout close #417

This commit is contained in:
Thomas Ricouard 2023-01-27 07:47:43 +01:00
parent 0a7ef1a2fb
commit 4a5b0eb2e6

View file

@ -78,11 +78,11 @@ struct SettingsTabs: View {
let sub = pushNotifications.subscriptions.first(where: { $0.account.token == token }) {
Task {
await sub.deleteSubscription()
}
}
appAccountsManager.delete(account: account)
}
}
}
}
addAccountButton
}
.listRowBackground(theme.primaryBackgroundColor)