NostrFilter+Hashable.swift (393B)
1 // 2 // NostrFilter+Hashable.swift 3 // damus 4 // 5 // Created by Davide De Rosa on 10/21/23. 6 // 7 8 import Foundation 9 10 // FIXME: fine-tune here what's involved in comparing search filters 11 extension NostrFilter: Hashable { 12 static func == (lhs: Self, rhs: Self) -> Bool { 13 lhs.hashtag == rhs.hashtag 14 } 15 16 func hash(into hasher: inout Hasher) { 17 hasher.combine(hashtag) 18 } 19 }