mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
re-add missing case of codepath
This commit is contained in:
parent
ef1c575bff
commit
f9d1fed74a
1 changed files with 1 additions and 0 deletions
|
@ -1076,6 +1076,7 @@ const TimelinePanel = createReactClass({
|
|||
if (timeline) {
|
||||
// This is a hot-path optimization by skipping a promise tick
|
||||
// by repeating a no-op sync branch in TimelineSet.getTimelineForEvent & MatrixClient.getEventTimeline
|
||||
this._timelineWindow.load(eventId, INITIAL_SIZE); // in this branch this method will happen in sync time
|
||||
onLoaded();
|
||||
} else {
|
||||
const prom = this._timelineWindow.load(eventId, INITIAL_SIZE);
|
||||
|
|
Loading…
Reference in a new issue