mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Handle external links to a user. (#2690)
This commit is contained in:
@@ -17,12 +17,14 @@
|
||||
import Foundation
|
||||
|
||||
enum UserProfileScreenViewModelAction {
|
||||
case openDirectChat(displayName: String?)
|
||||
case openDirectChat(roomID: String)
|
||||
case dismiss
|
||||
}
|
||||
|
||||
struct UserProfileScreenViewState: BindableState {
|
||||
let userID: String
|
||||
let isOwnUser: Bool
|
||||
let isPresentedModally: Bool
|
||||
|
||||
var userProfile: UserProfileProxy?
|
||||
var permalink: URL?
|
||||
@@ -40,8 +42,10 @@ struct UserProfileScreenViewStateBindings {
|
||||
enum UserProfileScreenViewAction {
|
||||
case displayAvatar
|
||||
case openDirectChat
|
||||
case dismiss
|
||||
}
|
||||
|
||||
enum UserProfileScreenError: Hashable {
|
||||
case failedOpeningDirectChat
|
||||
case unknown
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user