forked from mystiq/hydrogen-web
remove debugging code
This commit is contained in:
parent
743f2270e5
commit
afe8e17a6f
2 changed files with 1 additions and 9 deletions
|
@ -886,7 +886,7 @@ export class Session {
|
||||||
let observable = this._observedRoomStatus.get(roomId);
|
let observable = this._observedRoomStatus.get(roomId);
|
||||||
if (!observable) {
|
if (!observable) {
|
||||||
const status = await this.getRoomStatus(roomId);
|
const status = await this.getRoomStatus(roomId);
|
||||||
observable = new FooRetainedObservableValue(status, () => {
|
observable = new RetainedObservableValue(status, () => {
|
||||||
this._observedRoomStatus.delete(roomId);
|
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() {
|
export function tests() {
|
||||||
function createStorageMock(session, pendingEvents = []) {
|
function createStorageMock(session, pendingEvents = []) {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -228,7 +228,6 @@ export class Room extends BaseRoom {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let emitChange = false;
|
let emitChange = false;
|
||||||
console.log("Room summaryChanges", this.id, summaryChanges);
|
|
||||||
if (summaryChanges) {
|
if (summaryChanges) {
|
||||||
this._summary.applyChanges(summaryChanges);
|
this._summary.applyChanges(summaryChanges);
|
||||||
if (!this._summary.data.needsHeroes) {
|
if (!this._summary.data.needsHeroes) {
|
||||||
|
|
Loading…
Reference in a new issue