diff --git a/Kukai Mobile/Modules/Account/AccountViewModel.swift b/Kukai Mobile/Modules/Account/AccountViewModel.swift index 35ef6f59..1e9d9022 100644 --- a/Kukai Mobile/Modules/Account/AccountViewModel.swift +++ b/Kukai Mobile/Modules/Account/AccountViewModel.swift @@ -369,12 +369,14 @@ class AccountViewModel: ViewModel, UITableViewDiffableDataSourceHandler { } static func setupAccountActivityListener() { - let allWallets = DependencyManager.shared.walletList.addresses() - if DependencyManager.shared.tzktClient.isListening { - DependencyManager.shared.tzktClient.changeAddressToListenForChanges(addresses: allWallets) - - } else { - DependencyManager.shared.tzktClient.listenForAccountChanges(addresses: allWallets) + DispatchQueue.global().async { + let allWallets = DependencyManager.shared.walletList.addresses() + if DependencyManager.shared.tzktClient.isListening { + DependencyManager.shared.tzktClient.changeAddressToListenForChanges(addresses: allWallets) + + } else { + DependencyManager.shared.tzktClient.listenForAccountChanges(addresses: allWallets) + } } }