mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Refactor Rust timeline identifiers into our own. (#3731)
* Refactor eventOrTransactionID. * Refactor uniqueID.
This commit is contained in:
+1
-1
@@ -22,6 +22,6 @@ struct PaginationIndicatorRoomTimelineItem: DecorationTimelineItemProtocol, Equa
|
||||
}
|
||||
|
||||
init(position: Position) {
|
||||
id = .virtual(uniqueID: .init(id: position.id))
|
||||
id = .virtual(uniqueID: .init(position.id))
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,6 +8,6 @@
|
||||
import Foundation
|
||||
|
||||
struct TimelineStartRoomTimelineItem: DecorationTimelineItemProtocol, Equatable {
|
||||
let id: TimelineItemIdentifier = .virtual(uniqueID: .init(id: UUID().uuidString))
|
||||
let id: TimelineItemIdentifier = .virtual(uniqueID: .init(UUID().uuidString))
|
||||
let name: String?
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ final class RoomTimelineItemViewState: Identifiable, Equatable, ObservableObject
|
||||
// MARK: Identifiable
|
||||
|
||||
/// The `timelineID` of the item, used for the timeline view level identification, do not use for any business logic use `identifier` instead
|
||||
var id: TimelineUniqueId {
|
||||
var id: TimelineItemIdentifier.UniqueID {
|
||||
identifier.uniqueID
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user