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

Commit 6a8f650

Browse files
committed
Fix blank timeline when thread root is UTD
1 parent 910aa0b commit 6a8f650

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/structures/TimelinePanel.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,9 @@ class TimelinePanel extends React.Component<IProps, IState> {
16371637
let i = events.length - 1;
16381638
let userMembership = "leave";
16391639
for (; i >= 0; i--) {
1640-
const timeline = room.getTimelineForEvent(events[i].getId());
1640+
const timeline = isThreadTimeline
1641+
? room.getTimelineForEvent(events[i].getId())
1642+
: room.getUnfilteredTimelineSet().getTimelineForEvent(events[i].getId()!);
16411643
if (!timeline) {
16421644
// Somehow, it seems to be possible for live events to not have
16431645
// a timeline, even though that should not happen. :(

0 commit comments

Comments
 (0)