From afe8e17a6fc9c506239235bd0009a46b6226a79c Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 8 Feb 2022 17:00:06 +0100 Subject: [PATCH] remove debugging code --- src/matrix/Session.js | 9 +-------- src/matrix/room/Room.js | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/matrix/Session.js b/src/matrix/Session.js index 8d1c8613..4bb88f4e 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -886,7 +886,7 @@ export class Session { let observable = this._observedRoomStatus.get(roomId); if (!observable) { const status = await this.getRoomStatus(roomId); - observable = new FooRetainedObservableValue(status, () => { + observable = new RetainedObservableValue(status, () => { this._observedRoomStatus.delete(roomId); }); @@ -941,13 +941,6 @@ export class Session { } } -class FooRetainedObservableValue extends RetainedObservableValue { - set(value) { - console.log("setting room status to", value); - super.set(value); - } -} - export function tests() { function createStorageMock(session, pendingEvents = []) { return { diff --git a/src/matrix/room/Room.js b/src/matrix/room/Room.js index 65cfe693..a5bce14f 100644 --- a/src/matrix/room/Room.js +++ b/src/matrix/room/Room.js @@ -228,7 +228,6 @@ export class Room extends BaseRoom { } } let emitChange = false; - console.log("Room summaryChanges", this.id, summaryChanges); if (summaryChanges) { this._summary.applyChanges(summaryChanges); if (!this._summary.data.needsHeroes) {