From afcaec658f0b5456bc2369544ab1b9c35a30528d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 25 Oct 2023 08:01:24 +0100 Subject: [PATCH] Fix io.element.late_event received_ts vs received_at (#11789) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/grouper/LateEventGrouper.ts | 2 +- src/components/views/rooms/EventTile.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/structures/grouper/LateEventGrouper.ts b/src/components/structures/grouper/LateEventGrouper.ts index 5e7f0d19de..67282e608c 100644 --- a/src/components/structures/grouper/LateEventGrouper.ts +++ b/src/components/structures/grouper/LateEventGrouper.ts @@ -25,7 +25,7 @@ interface UnsignedLateEventInfo { /** * Milliseconds since epoch representing the time the event was received by the server */ - received_at: number; + received_ts: number; /** * An opaque identifier representing the group the server has put the late arriving event into */ diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index 45f42986ac..54d874d785 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -1127,7 +1127,7 @@ export class UnwrappedEventTile extends React.Component showRelative={this.context.timelineRenderingType === TimelineRenderingType.ThreadsList} showTwelveHour={this.props.isTwelveHour} ts={ts} - receivedTs={getLateEventInfo(this.props.mxEvent)?.received_at} + receivedTs={getLateEventInfo(this.props.mxEvent)?.received_ts} /> );