mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
don't try to fill when we had an error before
This commit is contained in:
parent
7777ef83dd
commit
9e28bdcc88
@ -63,6 +63,13 @@ export class GapTile extends SimpleTile {
|
||||
}
|
||||
|
||||
async notifyVisible() {
|
||||
// if any error happened before (apart from being offline),
|
||||
// let the user dismiss the error before trying to backfill
|
||||
// again so we don't try to do backfill the don't succeed
|
||||
// in quick succession
|
||||
if (this.errorViewModel) {
|
||||
return;
|
||||
}
|
||||
// we do (up to 10) backfills while no new tiles have been added to the timeline
|
||||
// because notifyVisible won't be called again until something gets added to the timeline
|
||||
let depth = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user