Skip to content

Commit

Permalink
MOB-2142 - Auto-enable exmtp profile for added ULW (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg-Pecheneg authored Aug 29, 2024
1 parent a2cf752 commit 7dc62c8
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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? {
Expand Down

0 comments on commit 7dc62c8

Please sign in to comment.