mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Run SwiftFormat.
This commit is contained in:
@@ -45,7 +45,7 @@ struct RoomDetailsScreenViewState: BindableState {
|
||||
var isEncrypted: Bool
|
||||
var isDirect: Bool
|
||||
var permalink: URL?
|
||||
|
||||
|
||||
var topic: AttributedString?
|
||||
var topicSummary: AttributedString?
|
||||
|
||||
@@ -67,9 +67,9 @@ struct RoomDetailsScreenViewState: BindableState {
|
||||
|
||||
var isKnockableRoom = false
|
||||
var knockRequestsCount = 0
|
||||
|
||||
|
||||
var reportRoomEnabled = false
|
||||
|
||||
|
||||
var canSeeKnockingRequests: Bool {
|
||||
dmRecipientInfo == nil && isKnockableRoom && (canInviteUsers || canKickUsers || canBanUsers)
|
||||
}
|
||||
@@ -85,9 +85,9 @@ struct RoomDetailsScreenViewState: BindableState {
|
||||
var hasTopicSection: Bool {
|
||||
topic != nil || canEditRoomTopic
|
||||
}
|
||||
|
||||
|
||||
var bindings: RoomDetailsScreenViewStateBindings
|
||||
|
||||
|
||||
var dmRecipientInfo: DMRecipientInfo?
|
||||
var accountOwner: RoomMemberDetails?
|
||||
|
||||
@@ -135,31 +135,31 @@ struct RoomDetailsScreenViewStateBindings {
|
||||
case ignore
|
||||
case unignore
|
||||
}
|
||||
|
||||
|
||||
let action: Action
|
||||
let cancelTitle = L10n.actionCancel
|
||||
|
||||
|
||||
var title: String {
|
||||
switch action {
|
||||
case .ignore: return L10n.screenDmDetailsBlockUser
|
||||
case .unignore: return L10n.screenDmDetailsUnblockUser
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var confirmationTitle: String {
|
||||
switch action {
|
||||
case .ignore: return L10n.screenDmDetailsBlockAlertAction
|
||||
case .unignore: return L10n.screenDmDetailsUnblockAlertAction
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var description: String {
|
||||
switch action {
|
||||
case .ignore: return L10n.screenDmDetailsBlockAlertDescription
|
||||
case .unignore: return L10n.screenDmDetailsUnblockAlertDescription
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var viewAction: RoomDetailsScreenViewAction {
|
||||
switch action {
|
||||
case .ignore: return .ignoreConfirmed
|
||||
@@ -169,7 +169,7 @@ struct RoomDetailsScreenViewStateBindings {
|
||||
}
|
||||
|
||||
var isFavourite = false
|
||||
|
||||
|
||||
/// Information describing the currently displayed alert.
|
||||
var alertInfo: AlertInfo<RoomDetailsScreenErrorType>?
|
||||
var leaveRoomAlertItem: LeaveRoomAlertItem?
|
||||
@@ -188,7 +188,7 @@ struct LeaveRoomAlertItem: AlertProtocol {
|
||||
case `public`
|
||||
case `private`
|
||||
}
|
||||
|
||||
|
||||
let roomID: String
|
||||
let isDM: Bool
|
||||
let state: RoomState
|
||||
@@ -198,7 +198,7 @@ struct LeaveRoomAlertItem: AlertProtocol {
|
||||
var title: String {
|
||||
isDM ? L10n.actionLeaveConversation : L10n.actionLeaveRoom
|
||||
}
|
||||
|
||||
|
||||
var subtitle: String {
|
||||
switch state {
|
||||
case .empty: return L10n.leaveRoomAlertEmptySubtitle
|
||||
|
||||
Reference in New Issue
Block a user