Fix new call event grouper implementation for encrypted rooms (#7654)
This commit is contained in:
parent
074fec359b
commit
b77d31bb4f
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue