mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Await the promise
This commit is contained in:
parent
d1c7a792b8
commit
4a62cdb8fb
@ -77,6 +77,9 @@ export class GapTile extends SimpleTile {
|
|||||||
// Don't increase depth because this gap fill was a noop
|
// Don't increase depth because this gap fill was a noop
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
canFillMore = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
depth = depth + 1;
|
depth = depth + 1;
|
||||||
} while (depth < 10 && !this._siblingChanged && canFillMore && !this.isDisposed);
|
} while (depth < 10 && !this._siblingChanged && canFillMore && !this.isDisposed);
|
||||||
@ -113,7 +116,7 @@ export class GapTile extends SimpleTile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async _waitForReconnection() {
|
async _waitForReconnection() {
|
||||||
this.options.client.reconnector.connectionStatus.waitFor(status => status === ConnectionStatus.Online).promise;
|
await this.options.client.reconnector.connectionStatus.waitFor(status => status === ConnectionStatus.Online).promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
get shape() {
|
get shape() {
|
||||||
|
Loading…
Reference in New Issue
Block a user