mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Use a UITableView component for the timeline. (#349)
* Use a collection view for the timeline. * Switch to a table view.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
import Foundation
|
||||
import MatrixRustSDK
|
||||
|
||||
struct MediaSourceProxy: Equatable {
|
||||
struct MediaSourceProxy: Hashable {
|
||||
let underlyingSource: MediaSource
|
||||
|
||||
init(source: MediaSource) {
|
||||
@@ -32,9 +32,16 @@ struct MediaSourceProxy: Equatable {
|
||||
underlyingSource.url()
|
||||
}
|
||||
|
||||
// MARK: - Equatable
|
||||
}
|
||||
|
||||
// MARK: - Hashable
|
||||
|
||||
extension MediaSource: Hashable {
|
||||
public static func == (lhs: MediaSource, rhs: MediaSource) -> Bool {
|
||||
lhs.url() == rhs.url()
|
||||
}
|
||||
|
||||
static func == (lhs: MediaSourceProxy, rhs: MediaSourceProxy) -> Bool {
|
||||
lhs.url == rhs.url
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
hasher.combine(url())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user