From b77d31bb4f6b9d379f74f37f8e3fe8f1bb1cbb42 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 27 Jan 2022 16:40:06 +0000 Subject: [PATCH] Fix new call event grouper implementation for encrypted rooms (#7654) --- src/components/structures/TimelinePanel.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/structures/TimelinePanel.tsx b/src/components/structures/TimelinePanel.tsx index 7ef0c4c44d..632b56d03d 100644 --- a/src/components/structures/TimelinePanel.tsx +++ b/src/components/structures/TimelinePanel.tsx @@ -731,6 +731,7 @@ class TimelinePanel extends React.Component { // 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(); } }; @@ -1231,6 +1232,7 @@ class TimelinePanel extends React.Component { onLoaded(); } else { const prom = this.timelineWindow.load(eventId, INITIAL_SIZE); + this.buildCallEventGroupers(); this.setState({ events: [], liveEvents: [], @@ -1238,7 +1240,6 @@ class TimelinePanel extends React.Component { canForwardPaginate: false, timelineLoading: true, }); - this.buildCallEventGroupers(); prom.then(onLoaded, onError); } }