From 56edfd176ffaa3d14b2bb796c0d42c5d5be03b33 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Wed, 4 Sep 2024 11:56:01 +0100 Subject: [PATCH] remove activeUser --- apps/ios/Shared/Views/ChatList/UserPicker.swift | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/apps/ios/Shared/Views/ChatList/UserPicker.swift b/apps/ios/Shared/Views/ChatList/UserPicker.swift index 543a84d707..3f719c5dec 100644 --- a/apps/ios/Shared/Views/ChatList/UserPicker.swift +++ b/apps/ios/Shared/Views/ChatList/UserPicker.swift @@ -12,7 +12,6 @@ struct UserPicker: View { @Environment(\.scenePhase) var scenePhase @Environment(\.colorScheme) var colorScheme @Binding var activeSheet: UserPickerSheet? - @State private var activeUser: User? = nil var body: some View { if #available(iOS 16.0, *) { @@ -164,8 +163,6 @@ struct UserPicker: View { } .frame(width: size) .onTapGesture { - activeUser = m.currentUser - Task { do { try await changeActiveUserAsync_(u.user.userId, viewPwd: nil) @@ -194,16 +191,6 @@ struct UserPicker: View { .foregroundColor(.primary) .padding(.leading, 36) } -// Label { -// Text(title).foregroundColor(.primary) -// } icon: { -// Image(systemName: image) -// .resizable() -// .scaledToFit() -// .symbolRenderingMode(.monochrome) -// .foregroundColor(theme.colors.secondary) -// .frame(maxHeight: 20) -// } }, action: action) }