Skip to content

Commit

Permalink
savepoint
Browse files Browse the repository at this point in the history
  • Loading branch information
llbartekll committed Feb 21, 2024
1 parent f1c63af commit e31e5e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/WalletConnectNotify/Client/Wallet/NotifyClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,12 @@ public class NotifyClient {
}

public func unregister(account: Account) async throws {
try await identityClient.unregister(account: account)
if identityClient.isIdentityRegistered(account: account) {
try await identityClient.unregister(account: account)
}
notifyWatcherAgreementKeysProvider.removeAgreement(account: account)
try notifyStorage.clearDatabase(account: account)
Task { try await pushClient.unregister()}
try await pushClient.unregister()
notifyAccountProvider.logout()
subscriptionWatcher.stop()
}
Expand Down

0 comments on commit e31e5e4

Please sign in to comment.