mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Update files following swiftformat upgrade
This commit is contained in:
committed by
Stefan Ceriu
parent
fe189fcfed
commit
23062901c0
+2
-2
@@ -36,8 +36,8 @@ struct KnockRequestsListScreenViewState: BindableState {
|
||||
var isKnockableRoom = true
|
||||
var handledEventIDs: Set<String> = []
|
||||
|
||||
// If all the permissions are denied or the join rule changes while we are in the view
|
||||
// we want to stop displaying any request
|
||||
/// If all the permissions are denied or the join rule changes while we are in the view
|
||||
/// we want to stop displaying any request
|
||||
var shouldDisplayRequests: Bool {
|
||||
!displayedRequests.isEmpty && isKnockableRoom && (canAccept || canDecline || canBan)
|
||||
}
|
||||
|
||||
@@ -80,7 +80,6 @@ struct KnockRequestCell: View {
|
||||
}
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
private var actions: some View {
|
||||
VStack(spacing: 16) {
|
||||
if onDecline != nil || onAccept != nil {
|
||||
@@ -174,7 +173,9 @@ private struct DisclosableText: View {
|
||||
}
|
||||
|
||||
extension KnockRequestCellInfo: Identifiable {
|
||||
var id: String { eventID }
|
||||
var id: String {
|
||||
eventID
|
||||
}
|
||||
}
|
||||
|
||||
struct KnockRequestCell_Previews: PreviewProvider, TestablePreview {
|
||||
|
||||
Reference in New Issue
Block a user