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

Commit

Permalink
Fix new call event grouper implementation for encrypted rooms (#7654)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Jan 27, 2022
1 parent 074fec3 commit b77d31b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/structures/TimelinePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
// but possibly the event tile itself should just update when this
// happens to save us re-rendering the whole timeline.
if (ev.getRoomId() === this.props.timelineSet.room.roomId) {
this.buildCallEventGroupers(this.state.events);
this.forceUpdate();
}
};
Expand Down Expand Up @@ -1231,14 +1232,14 @@ class TimelinePanel extends React.Component<IProps, IState> {
onLoaded();
} else {
const prom = this.timelineWindow.load(eventId, INITIAL_SIZE);
this.buildCallEventGroupers();
this.setState({
events: [],
liveEvents: [],
canBackPaginate: false,
canForwardPaginate: false,
timelineLoading: true,
});
this.buildCallEventGroupers();
prom.then(onLoaded, onError);
}
}
Expand Down

0 comments on commit b77d31b

Please sign in to comment.