mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
simpler optional log
This commit is contained in:
parent
8684d6b5e5
commit
325d237302
@ -163,7 +163,7 @@ export class Room extends EventEmitter {
|
||||
if (this._observedEvents) {
|
||||
this._observedEvents.updateEvents(entries);
|
||||
}
|
||||
}, this._platform.logger, log);
|
||||
}, ensureLogItem(log));
|
||||
return request;
|
||||
}
|
||||
|
||||
@ -746,10 +746,10 @@ export class Room extends EventEmitter {
|
||||
}
|
||||
|
||||
class DecryptionRequest {
|
||||
constructor(decryptFn, logger, log) {
|
||||
constructor(decryptFn, log) {
|
||||
this._cancelled = false;
|
||||
this.preparation = null;
|
||||
this._promise = logger.wrapOrRun(log, "decryptEntries", log => decryptFn(this, log));
|
||||
this._promise = log.wrap("decryptEntries", log => decryptFn(this, log));
|
||||
}
|
||||
|
||||
complete() {
|
||||
|
Loading…
Reference in New Issue
Block a user