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:
Daniel D’Aquino committed 2025-01-24 10:42:29 -08:00
1 parent 24c3e61a4b
commit 72c19fc411
1 file changed
+3
+3
View File
@@ -175,6 +175,9 @@ class DamusState: HeadlessDamusState {
func close() {
print("txn: damus close")
Task {
try await self.push_notification_client.revoke_token()
}
wallet.disconnect()
pool.close()
ndb.close()