From 9044986cb54f28ca4e14cb7d29936d8254d77f2c Mon Sep 17 00:00:00 2001 From: Oleg Date: Thu, 29 Aug 2024 10:46:34 +0300 Subject: [PATCH] MOB-2142 - Auto-enable exmtp profile for added ULW --- .../Services/WalletsDataService/WalletsDataService.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/unstoppable-ios-app/domains-manager-ios/Services/WalletsDataService/WalletsDataService.swift b/unstoppable-ios-app/domains-manager-ios/Services/WalletsDataService/WalletsDataService.swift index 1b4c2c982..4d86e2d01 100644 --- a/unstoppable-ios-app/domains-manager-ios/Services/WalletsDataService/WalletsDataService.swift +++ b/unstoppable-ios-app/domains-manager-ios/Services/WalletsDataService/WalletsDataService.swift @@ -617,7 +617,14 @@ private extension WalletsDataService { storage.cacheWallets(wallets) self.wallets = wallets - newWallets.forEach { refreshDataForWalletAsync($0) } + newWallets.forEach { wallet in + refreshDataForWalletAsync(wallet) + if wallet.udWallet.type == .mpc { + Task.detached { + _ = try? await appContext.messagingService.createUserMessagingProfile(for: wallet) + } + } + } } func createNewWalletEntityFor(udWallet: UDWallet) -> WalletEntity? {