From 345560ed97f92703b677b73b92c0a980829e7849 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 27 Oct 2021 12:28:12 +0530 Subject: [PATCH] Rename ret to gapPromise Signed-off-by: RMidhunSuresh --- src/domain/session/room/timeline/TimelineViewModel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/domain/session/room/timeline/TimelineViewModel.js b/src/domain/session/room/timeline/TimelineViewModel.js index 3441f4ab..33c9925f 100644 --- a/src/domain/session/room/timeline/TimelineViewModel.js +++ b/src/domain/session/room/timeline/TimelineViewModel.js @@ -96,9 +96,9 @@ export class TimelineViewModel extends ViewModel { const startIndex = this._tiles.getTileIndex(this._startTile); const endIndex = this._tiles.getTileIndex(this._endTile); for (const tile of this._tiles.sliceIterator(startIndex, endIndex + 1)) { - const ret = tile.notifyVisible(); - if (ret) { - this.watchForGapFill(ret, tile); + const gapPromise = tile.notifyVisible(); + if (gapPromise) { + this.watchForGapFill(gapPromise, tile); } } loadTop = startIndex < 10;