mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
remove debug logging
This commit is contained in:
parent
c9f79343ef
commit
6ec2712eec
@ -77,12 +77,10 @@ export class TimelineViewModel extends ViewModel {
|
|||||||
}
|
}
|
||||||
loadTop = startIndex < 10;
|
loadTop = startIndex < 10;
|
||||||
this._setShowJumpDown(endIndex < (this._tiles.length - 1));
|
this._setShowJumpDown(endIndex < (this._tiles.length - 1));
|
||||||
// console.log("got tiles", startIndex, endIndex, loadTop);
|
|
||||||
} else {
|
} else {
|
||||||
// tiles collection is empty, load more at top
|
// tiles collection is empty, load more at top
|
||||||
loadTop = true;
|
loadTop = true;
|
||||||
this._setShowJumpDown(false);
|
this._setShowJumpDown(false);
|
||||||
// console.log("no tiles, load more at top");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (loadTop && !this._topLoadingPromise) {
|
if (loadTop && !this._topLoadingPromise) {
|
||||||
@ -95,8 +93,6 @@ export class TimelineViewModel extends ViewModel {
|
|||||||
this.setVisibleTileRange(this._requestedStartTile, this._requestedEndTile);
|
this.setVisibleTileRange(this._requestedStartTile, this._requestedEndTile);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (loadTop) {
|
|
||||||
// console.log("loadTop is true but already loading");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user