diff --git a/Tusker/Screens/Timeline/TimelineTableViewController.swift b/Tusker/Screens/Timeline/TimelineTableViewController.swift index 377aa5d6..63b914cb 100644 --- a/Tusker/Screens/Timeline/TimelineTableViewController.swift +++ b/Tusker/Screens/Timeline/TimelineTableViewController.swift @@ -177,11 +177,11 @@ class TimelineTableViewController: DiffableTimelineLikeTableViewController Bool { + switch (lhs, rhs) { + case let (.status(id: a, state: _), .status(id: b, state: _)): + return a == b + case (.confirmLoadMore, .confirmLoadMore): + return true + default: + return false + } + } + + func hash(into hasher: inout Hasher) { + switch self { + case let .status(id: id, state: _): + hasher.combine(0) + hasher.combine(id) + case .confirmLoadMore: + hasher.combine(1) + } + } } }