mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Run SwiftFormat.
This commit is contained in:
@@ -24,7 +24,7 @@ struct UserProfileScreenViewState: BindableState {
|
||||
var isVerified: Bool?
|
||||
var permalink: URL?
|
||||
var dmRoomID: String?
|
||||
|
||||
|
||||
var bindings: UserProfileScreenViewStateBindings
|
||||
|
||||
var showVerifiedBadge: Bool {
|
||||
|
||||
@@ -71,7 +71,7 @@ class UserProfileScreenViewModel: UserProfileScreenViewModelType, UserProfileScr
|
||||
actionsSubject.send(.dismiss)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// MARK: - Private
|
||||
|
||||
private func loadProfile() async {
|
||||
@@ -169,7 +169,7 @@ class UserProfileScreenViewModel: UserProfileScreenViewModelType, UserProfileScr
|
||||
private var loadingIndicatorIdentifier: String {
|
||||
"\(Self.self)-Loading"
|
||||
}
|
||||
|
||||
|
||||
private var statusIndicatorIdentifier: String {
|
||||
"\(Self.self)-Status"
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ struct UserProfileScreen: View {
|
||||
}
|
||||
.padding(.top, 32)
|
||||
}
|
||||
|
||||
|
||||
@ToolbarContentBuilder
|
||||
private var toolbar: some ToolbarContent {
|
||||
if context.viewState.isPresentedModally {
|
||||
@@ -138,11 +138,11 @@ struct UserProfileScreen_Previews: PreviewProvider, TestablePreview {
|
||||
|
||||
return .success(identity)
|
||||
}
|
||||
|
||||
|
||||
if userID != RoomMemberProxyMock.mockMe.userID {
|
||||
clientProxyMock.directRoomForUserIDReturnValue = .success("roomID")
|
||||
}
|
||||
|
||||
|
||||
return UserProfileScreenViewModel(userID: userID,
|
||||
isPresentedModally: false,
|
||||
userSession: UserSessionMock(.init(clientProxy: clientProxyMock)),
|
||||
|
||||
Reference in New Issue
Block a user