Update files following swiftformat upgrade

This commit is contained in:
Stefan Ceriu
2026-01-27 08:47:03 +02:00
committed by Stefan Ceriu
parent fe189fcfed
commit 23062901c0
343 changed files with 1502 additions and 1048 deletions
@@ -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 {