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

Commit b77d31b

Browse files
authored
Fix new call event grouper implementation for encrypted rooms (#7654)
1 parent 074fec3 commit b77d31b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/structures/TimelinePanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
731731
// but possibly the event tile itself should just update when this
732732
// happens to save us re-rendering the whole timeline.
733733
if (ev.getRoomId() === this.props.timelineSet.room.roomId) {
734+
this.buildCallEventGroupers(this.state.events);
734735
this.forceUpdate();
735736
}
736737
};
@@ -1231,14 +1232,14 @@ class TimelinePanel extends React.Component<IProps, IState> {
12311232
onLoaded();
12321233
} else {
12331234
const prom = this.timelineWindow.load(eventId, INITIAL_SIZE);
1235+
this.buildCallEventGroupers();
12341236
this.setState({
12351237
events: [],
12361238
liveEvents: [],
12371239
canBackPaginate: false,
12381240
canForwardPaginate: false,
12391241
timelineLoading: true,
12401242
});
1241-
this.buildCallEventGroupers();
12421243
prom.then(onLoaded, onError);
12431244
}
12441245
}

0 commit comments

Comments
 (0)