mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
more info when logging gap fills
This commit is contained in:
parent
1093895133
commit
376e59820c
@ -408,7 +408,11 @@ export class Room extends EventEmitter {
|
|||||||
fillGap(fragmentEntry, amount, log = null) {
|
fillGap(fragmentEntry, amount, log = null) {
|
||||||
// TODO move some/all of this out of Room
|
// TODO move some/all of this out of Room
|
||||||
return this._platform.logger.wrapOrRun(log, "fillGap", async log => {
|
return this._platform.logger.wrapOrRun(log, "fillGap", async log => {
|
||||||
|
log.set("id", this.id);
|
||||||
|
log.set("fragment", fragmentEntry.fragmentId);
|
||||||
|
log.set("dir", fragmentEntry.direction.asApiString());
|
||||||
if (fragmentEntry.edgeReached) {
|
if (fragmentEntry.edgeReached) {
|
||||||
|
log.set("edgeReached", true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const response = await this._hsApi.messages(this._roomId, {
|
const response = await this._hsApi.messages(this._roomId, {
|
||||||
|
Loading…
Reference in New Issue
Block a user