Unsubscribe from push notifications on logout
Closes: https://github.com/damus-io/damus/issues/1707 Changelog-Fixed: Fixed issue where users continue to receive push notifications after logout Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
@@ -175,6 +175,9 @@ class DamusState: HeadlessDamusState {
|
|||||||
|
|
||||||
func close() {
|
func close() {
|
||||||
print("txn: damus close")
|
print("txn: damus close")
|
||||||
|
Task {
|
||||||
|
try await self.push_notification_client.revoke_token()
|
||||||
|
}
|
||||||
wallet.disconnect()
|
wallet.disconnect()
|
||||||
pool.close()
|
pool.close()
|
||||||
ndb.close()
|
ndb.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user