Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct TimelineStartRoomTimelineView: View {

struct TimelineStartRoomTimelineView_Previews: PreviewProvider, TestablePreview {
static var previews: some View {
let item = TimelineStartRoomTimelineItem(name: "Alice and Bob")
let item = TimelineStartRoomTimelineItem(id: .virtual(uniqueID: .init("Start")), name: "Alice and Bob")
TimelineStartRoomTimelineView(timelineItem: item)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ class TimelineController: TimelineControllerProtocol {
case .readMarker:
return ReadMarkerRoomTimelineItem(id: .virtual(uniqueID: uniqueID))
case .timelineStart:
return isDM ? nil : TimelineStartRoomTimelineItem(name: roomDisplayName)
return isDM ? nil : TimelineStartRoomTimelineItem(id: .virtual(uniqueID: uniqueID), name: roomDisplayName)
}
case .unknown:
return nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
import Foundation

struct TimelineStartRoomTimelineItem: DecorationTimelineItemProtocol, Equatable {
let id: TimelineItemIdentifier = .virtual(uniqueID: .init(UUID().uuidString))
let id: TimelineItemIdentifier
Copy link
Member

@Velin92 Velin92 May 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the only thing needed is to do TimelineItemIdentifier = .virtual(uniqueID: .init("TimelineStart")) or just "Start" and the rest should come by itself quite easily without any other change in any other file.

let name: String?
}
Loading