remove logging

This commit is contained in:
Bruno Windels 2022-02-10 14:39:41 +01:00
parent 75bbde598d
commit 2c1b29e637

View file

@ -60,13 +60,10 @@ export class RoomViewModelObservable extends ObservableValue {
} }
async _statusToViewModel(status) { async _statusToViewModel(status) {
console.log("RoomViewModelObservable received status", status);
if (status & RoomStatus.Replaced) { if (status & RoomStatus.Replaced) {
console.log("replaced!");
if (status & RoomStatus.BeingCreated) { if (status & RoomStatus.BeingCreated) {
const {session} = this._sessionViewModel._client; const {session} = this._sessionViewModel._client;
const roomBeingCreated = session.roomsBeingCreated.get(this.id); const roomBeingCreated = session.roomsBeingCreated.get(this.id);
console.log("new id is", roomBeingCreated.roomId);
this._sessionViewModel.navigation.push("room", roomBeingCreated.roomId); this._sessionViewModel.navigation.push("room", roomBeingCreated.roomId);
} else { } else {
throw new Error("Don't know how to replace a room with this status: " + (status ^ RoomStatus.Replaced)); throw new Error("Don't know how to replace a room with this status: " + (status ^ RoomStatus.Replaced));