pr suggestions

This commit is contained in:
Element CI
2025-02-03 16:14:51 +01:00
committed by Mauro
parent 14e5d1aa94
commit 10d39257f0
4 changed files with 6 additions and 6 deletions
@@ -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