Skip to content

Commit

Permalink
Unsubscribe from push notifications on logout
Browse files Browse the repository at this point in the history
Closes: #1707
Changelog-Fixed: Fixed issue where users continue to receive push notifications after logout
Signed-off-by: Daniel D’Aquino <[email protected]>
  • Loading branch information
danieldaquino committed Jan 17, 2025
1 parent 7a4af31 commit 2a2ddb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions damus/Models/DamusState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2a2ddb3

Please sign in to comment.