mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-24 07:51:34 +02:00
Merge pull request #3627 from matrix-org/t3chguy/bluebird_sync
re-add missing case of codepath
This commit is contained in:
commit
f543a113cf
@ -1076,6 +1076,7 @@ const TimelinePanel = createReactClass({
|
|||||||
if (timeline) {
|
if (timeline) {
|
||||||
// This is a hot-path optimization by skipping a promise tick
|
// This is a hot-path optimization by skipping a promise tick
|
||||||
// by repeating a no-op sync branch in TimelineSet.getTimelineForEvent & MatrixClient.getEventTimeline
|
// 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();
|
onLoaded();
|
||||||
} else {
|
} else {
|
||||||
const prom = this._timelineWindow.load(eventId, INITIAL_SIZE);
|
const prom = this._timelineWindow.load(eventId, INITIAL_SIZE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user