Skip to content

Commit

Permalink
Temporarily stop TonConnectManager
Browse files Browse the repository at this point in the history
  • Loading branch information
esen committed Dec 25, 2024
1 parent 353a28d commit 4039f26
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ class TonConnectManager {
self.storage = storage
self.accountManager = accountManager

accountManager.accountDeletedPublisher
.sink { [weak self] in self?.handleDeleted(account: $0) }
.store(in: &cancellables)

syncTonConnectApps()
// accountManager.accountDeletedPublisher
// .sink { [weak self] in self?.handleDeleted(account: $0) }
// .store(in: &cancellables)
//
// syncTonConnectApps()
}

private func handleDeleted(account: Account) {
Expand All @@ -63,7 +63,7 @@ class TonConnectManager {
tonConnectApps = []
}

start()
// start()
}

public func start() {
Expand Down Expand Up @@ -204,7 +204,7 @@ class TonConnectManager {
private func delete(tonConnectApp: TonConnectApp) throws {
try storage.delete(tonConnectApp: tonConnectApp)

syncTonConnectApps()
// syncTonConnectApps()
}
}

Expand Down Expand Up @@ -243,7 +243,7 @@ extension TonConnectManager {
try await send(message: message, clientId: parameters.clientId, sessionCrypto: sessionCrypto)
try storeConnectedApp(account: account, sessionCrypto: sessionCrypto, parameters: parameters, manifest: manifest)

syncTonConnectApps()
// syncTonConnectApps()
}

func disconnect(tonConnectApp: TonConnectApp) async throws {
Expand Down

0 comments on commit 4039f26

Please sign in to comment.