From 1dc658e6c7b6325c6af364d83d0124158c783c14 Mon Sep 17 00:00:00 2001 From: Diogo Date: Tue, 27 Aug 2024 10:16:48 +0100 Subject: [PATCH] send current user option to address view --- apps/ios/Shared/Views/ChatList/UserPicker.swift | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/ios/Shared/Views/ChatList/UserPicker.swift b/apps/ios/Shared/Views/ChatList/UserPicker.swift index 8b798e2fa3..56f0806875 100644 --- a/apps/ios/Shared/Views/ChatList/UserPicker.swift +++ b/apps/ios/Shared/Views/ChatList/UserPicker.swift @@ -137,10 +137,12 @@ struct UserPicker: View { case .chatProfiles: UserProfilesView(showSettings: $showSettings) case .address: - UserAddressView(shareViaProfile: true) - .navigationTitle("SimpleX address") - .navigationBarTitleDisplayMode(.large) - .modifier(ThemedBackground(grouped: true)) + if let user = m.currentUser { + UserAddressView(shareViaProfile: user.addressShared) + .navigationTitle("SimpleX address") + .navigationBarTitleDisplayMode(.large) + .modifier(ThemedBackground(grouped: true)) + } case .chatPreferences: if let user = m.currentUser { PreferencesView(profile: user.profile, preferences: user.fullPreferences, currentPreferences: user.fullPreferences)