mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Add RoomDetails for use (with RoomMemberDetails) in AvatarHeaderView. (#2490)
* Add RoomDetails and refactor AvatarHeaderView to use it. * Remove old displayName property and use RoomDetails in the RoomDetailsScreenViewState
This commit is contained in:
@@ -33,16 +33,14 @@ enum RoomDetailsScreenViewModelAction {
|
||||
// MARK: View
|
||||
|
||||
struct RoomDetailsScreenViewState: BindableState {
|
||||
let roomId: String
|
||||
let canonicalAlias: String?
|
||||
var details: RoomDetails
|
||||
|
||||
let isEncrypted: Bool
|
||||
let isDirect: Bool
|
||||
let permalink: URL?
|
||||
|
||||
var title = ""
|
||||
var topic: AttributedString?
|
||||
var topicSummary: AttributedString?
|
||||
var avatarURL: URL?
|
||||
var joinedMembersCount: Int
|
||||
var isProcessingIgnoreRequest = false
|
||||
var canInviteUsers = false
|
||||
@@ -148,7 +146,7 @@ struct LeaveRoomAlertItem: AlertProtocol {
|
||||
case `private`
|
||||
}
|
||||
|
||||
let roomId: String
|
||||
let roomID: String
|
||||
let isDM: Bool
|
||||
let state: RoomState
|
||||
let confirmationTitle = L10n.actionLeave
|
||||
|
||||
Reference in New Issue
Block a user