1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-05 15:22:09 +03:00

Fix new call event grouper implementation for encrypted rooms (#7654)

This commit is contained in:
Michael Telatynski
2022-01-27 16:40:06 +00:00
committed by GitHub
parent 074fec359b
commit b77d31bb4f

View File

@@ -731,6 +731,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
// but possibly the event tile itself should just update when this // but possibly the event tile itself should just update when this
// happens to save us re-rendering the whole timeline. // happens to save us re-rendering the whole timeline.
if (ev.getRoomId() === this.props.timelineSet.room.roomId) { if (ev.getRoomId() === this.props.timelineSet.room.roomId) {
this.buildCallEventGroupers(this.state.events);
this.forceUpdate(); this.forceUpdate();
} }
}; };
@@ -1231,6 +1232,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
onLoaded(); onLoaded();
} else { } else {
const prom = this.timelineWindow.load(eventId, INITIAL_SIZE); const prom = this.timelineWindow.load(eventId, INITIAL_SIZE);
this.buildCallEventGroupers();
this.setState({ this.setState({
events: [], events: [],
liveEvents: [], liveEvents: [],
@@ -1238,7 +1240,6 @@ class TimelinePanel extends React.Component<IProps, IState> {
canForwardPaginate: false, canForwardPaginate: false,
timelineLoading: true, timelineLoading: true,
}); });
this.buildCallEventGroupers();
prom.then(onLoaded, onError); prom.then(onLoaded, onError);
} }
} }