mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-10 21:54:10 +01:00
Fix #1948
This commit is contained in:
parent
b9b3d0e727
commit
a0e022b8de
@ -43,6 +43,10 @@ public enum TimelineFilter: Hashable, Equatable, Identifiable {
|
||||
switch self {
|
||||
case let .remoteLocal(server, filter):
|
||||
return server + filter.rawValue
|
||||
case let .list(list):
|
||||
return list.id
|
||||
case let .tagGroup(title, tags, _):
|
||||
return title + tags.joined()
|
||||
default:
|
||||
return title
|
||||
}
|
||||
@ -50,7 +54,7 @@ public enum TimelineFilter: Hashable, Equatable, Identifiable {
|
||||
}
|
||||
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
hasher.combine(title)
|
||||
hasher.combine(id)
|
||||
}
|
||||
|
||||
public static func availableTimeline(client: Client) -> [TimelineFilter] {
|
||||
|
Loading…
Reference in New Issue
Block a user