You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-04 03:22:43 +03:00
Fix checkForPreJoinUISI for thread roots (#9803)
* Fix blank timeline when thread root is UTD * add test for pre join uisi checks and thread roots * ts strict fix * Update to timeline panel test Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Fixes to TimelinePanel-test Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
@@ -1637,7 +1637,7 @@ 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 = this.props.timelineSet.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. :(
|
||||
|
||||
Reference in New Issue
Block a user