mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
swiftformat now enforces newlines for ifs
This commit is contained in:
@@ -286,7 +286,9 @@ struct TimelineState {
|
||||
/// value to ``itemsDictionary``.
|
||||
mutating func recomputeReadMarkerUniqueID() {
|
||||
readMarkerUniqueID = itemsDictionary.first { _, viewState in
|
||||
if case .readMarker = viewState.type { return true }
|
||||
if case .readMarker = viewState.type {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}?.key
|
||||
}
|
||||
|
||||
@@ -103,7 +103,9 @@ class TimelineTableViewController: UIViewController {
|
||||
var isLive = true {
|
||||
didSet {
|
||||
// Update isScrolledToBottom when switching back to a live timeline.
|
||||
if isLive { scrollViewDidScroll(tableView) }
|
||||
if isLive {
|
||||
scrollViewDidScroll(tableView)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+5
-1
@@ -113,7 +113,11 @@ struct TimelineItemMenuActionProvider {
|
||||
}
|
||||
|
||||
if canRedactItem(item) {
|
||||
let isMedia = if case .media = timelineKind { true } else { false }
|
||||
let isMedia = if case .media = timelineKind {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
secondaryActions.append(.redact(isMedia: isMedia))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user