mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
pr suggestions
This commit is contained in:
@@ -35,7 +35,7 @@ struct UserProfileScreenViewState: BindableState {
|
||||
}
|
||||
|
||||
struct UserProfileScreenViewStateBindings {
|
||||
var alertInfo: AlertInfo<UserProfileScreenError>?
|
||||
var alertInfo: AlertInfo<UserProfileScreenAlertType>?
|
||||
|
||||
/// A media item that will be previewed with QuickLook.
|
||||
var mediaPreviewItem: MediaPreviewItem?
|
||||
@@ -48,7 +48,7 @@ enum UserProfileScreenViewAction {
|
||||
case dismiss
|
||||
}
|
||||
|
||||
enum UserProfileScreenError: Hashable {
|
||||
enum UserProfileScreenAlertType: Hashable {
|
||||
case failedOpeningDirectChat
|
||||
case unknown
|
||||
case createDirectChatConfirmation
|
||||
|
||||
@@ -118,7 +118,7 @@ class UserProfileScreenViewModel: UserProfileScreenViewModelType, UserProfileScr
|
||||
|
||||
switch await clientProxy.directRoomForUserID(userProfile.userID) {
|
||||
case .success(let roomID):
|
||||
if let roomID = roomID {
|
||||
if let roomID {
|
||||
actionsSubject.send(.openDirectChat(roomID: roomID))
|
||||
} else {
|
||||
let string = userProfile.displayName ?? userProfile.userID
|
||||
|
||||
Reference in New Issue
Block a user