Skip to content

Commit

Permalink
pr suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Element CI authored and Velin92 committed Feb 3, 2025
1 parent 14e5d1a commit 10d3925
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct RoomMemberDetailsScreenViewStateBindings {
}

var ignoreUserAlert: IgnoreUserAlertItem?
var alertInfo: AlertInfo<RoomMemberDetailsScreenError>?
var alertInfo: AlertInfo<RoomMemberDetailsScreenAlertType>?

/// A media item that will be previewed with QuickLook.
var mediaPreviewItem: MediaPreviewItem?
Expand All @@ -88,7 +88,7 @@ enum RoomMemberDetailsScreenViewAction {
case startCall(roomID: String)
}

enum RoomMemberDetailsScreenError: Hashable {
enum RoomMemberDetailsScreenAlertType: Hashable {
case failedOpeningDirectChat
case createDirectChatConfirmation
case unknown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class RoomMemberDetailsScreenViewModel: RoomMemberDetailsScreenViewModelType, Ro

switch await clientProxy.directRoomForUserID(roomMemberProxy.userID) {
case .success(let roomID):
if let roomID = roomID {
if let roomID {
actionsSubject.send(.openDirectChat(roomID: roomID))
} else {
let string = roomMemberProxy.displayName ?? roomMemberProxy.userID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -48,7 +48,7 @@ enum UserProfileScreenViewAction {
case dismiss
}

enum UserProfileScreenError: Hashable {
enum UserProfileScreenAlertType: Hashable {
case failedOpeningDirectChat
case unknown
case createDirectChatConfirmation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10d3925

Please sign in to comment.