mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 20:47:18 +01:00
Rename ret to gapPromise
Signed-off-by: RMidhunSuresh <hi@midhun.dev>
This commit is contained in:
parent
57fa292583
commit
345560ed97
@ -96,9 +96,9 @@ export class TimelineViewModel extends ViewModel {
|
|||||||
const startIndex = this._tiles.getTileIndex(this._startTile);
|
const startIndex = this._tiles.getTileIndex(this._startTile);
|
||||||
const endIndex = this._tiles.getTileIndex(this._endTile);
|
const endIndex = this._tiles.getTileIndex(this._endTile);
|
||||||
for (const tile of this._tiles.sliceIterator(startIndex, endIndex + 1)) {
|
for (const tile of this._tiles.sliceIterator(startIndex, endIndex + 1)) {
|
||||||
const ret = tile.notifyVisible();
|
const gapPromise = tile.notifyVisible();
|
||||||
if (ret) {
|
if (gapPromise) {
|
||||||
this.watchForGapFill(ret, tile);
|
this.watchForGapFill(gapPromise, tile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
loadTop = startIndex < 10;
|
loadTop = startIndex < 10;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user