Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix blank timeline when thread root is UTD
Browse files Browse the repository at this point in the history
  • Loading branch information
germain-gg committed Dec 20, 2022
1 parent 910aa0b commit 6a8f650
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/structures/TimelinePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,9 @@ class TimelinePanel extends React.Component<IProps, IState> {
let i = events.length - 1;
let userMembership = "leave";
for (; i >= 0; i--) {
const timeline = room.getTimelineForEvent(events[i].getId());
const timeline = isThreadTimeline
? room.getTimelineForEvent(events[i].getId())
: room.getUnfilteredTimelineSet().getTimelineForEvent(events[i].getId()!);
if (!timeline) {
// Somehow, it seems to be possible for live events to not have
// a timeline, even though that should not happen. :(
Expand Down

0 comments on commit 6a8f650

Please sign in to comment.