mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Diffable fade animations (#1343)
* animate only 2 seconds after the appearence * scrolling is stable * code improvement * comment and removing code that is not necessary anymore * feature flag * comment * better code * the day divider ID is the timestamp itself as ISO * Apply suggestions from code review Co-authored-by: Alfonso Grillo <alfogrillo@gmail.com> * format fix --------- Co-authored-by: Alfonso Grillo <alfogrillo@gmail.com>
This commit is contained in:
@@ -355,8 +355,7 @@ class RoomTimelineController: RoomTimelineControllerProtocol {
|
||||
let date = Date(timeIntervalSince1970: TimeInterval(timestamp / 1000))
|
||||
let dateString = date.formatted(date: .complete, time: .omitted)
|
||||
|
||||
// Separators without stable identifiers cause UI glitches
|
||||
let identifier = "\(chunkIndex)-\(dateString)"
|
||||
let identifier = date.formatted(.iso8601.dateSeparator(.dash))
|
||||
return SeparatorRoomTimelineItem(id: .init(timelineID: identifier), text: dateString)
|
||||
case .readMarker:
|
||||
return ReadMarkerRoomTimelineItem()
|
||||
|
||||
Reference in New Issue
Block a user