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

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix blank timeline when thread root is UTD
Browse files Browse the repository at this point in the history
germain-gg committed Dec 20, 2022
1 parent 910aa0b commit 86034b4
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
@@ -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. :(

0 comments on commit 86034b4

Please sign in to comment.