diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index ee853a70ea..bd2d7fb961 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -1121,9 +1121,13 @@ export class UnwrappedEventTile extends React.Component { || Boolean(this.state.contextMenu)); // Thread panel shows the timestamp of the last reply in that thread - const ts = this.context.timelineRenderingType !== TimelineRenderingType.ThreadsList + let ts = this.context.timelineRenderingType !== TimelineRenderingType.ThreadsList ? this.props.mxEvent.getTs() - : this.state.thread?.replyToEvent.getTs(); + : this.state.thread?.replyToEvent?.getTs(); + if (typeof ts !== "number") { + // Fall back to something we can use + ts = this.props.mxEvent.getTs(); + } const messageTimestamp =