mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
remove obsolete logging
This commit is contained in:
parent
32d9f6e830
commit
799ea50c68
@ -159,7 +159,6 @@ export class SessionViewModel extends ViewModel {
|
|||||||
_createRoomViewModel(roomId, refreshRoomViewModel) {
|
_createRoomViewModel(roomId, refreshRoomViewModel) {
|
||||||
const invite = this._sessionContainer.session.invites.get(roomId);
|
const invite = this._sessionContainer.session.invites.get(roomId);
|
||||||
if (invite) {
|
if (invite) {
|
||||||
console.log("got invite");
|
|
||||||
return new InviteViewModel(this.childOptions({
|
return new InviteViewModel(this.childOptions({
|
||||||
invite,
|
invite,
|
||||||
mediaRepository: this._sessionContainer.session.mediaRepository,
|
mediaRepository: this._sessionContainer.session.mediaRepository,
|
||||||
@ -168,7 +167,6 @@ export class SessionViewModel extends ViewModel {
|
|||||||
} else {
|
} else {
|
||||||
const room = this._sessionContainer.session.rooms.get(roomId);
|
const room = this._sessionContainer.session.rooms.get(roomId);
|
||||||
if (room) {
|
if (room) {
|
||||||
console.log("got room");
|
|
||||||
const roomVM = new RoomViewModel(this.childOptions({
|
const roomVM = new RoomViewModel(this.childOptions({
|
||||||
room,
|
room,
|
||||||
ownUserId: this._sessionContainer.session.user.id,
|
ownUserId: this._sessionContainer.session.user.id,
|
||||||
@ -198,7 +196,6 @@ export class SessionViewModel extends ViewModel {
|
|||||||
_updateRoom(roomId) {
|
_updateRoom(roomId) {
|
||||||
// opening a room and already open?
|
// opening a room and already open?
|
||||||
if (this._currentRoomViewModel?.id === roomId) {
|
if (this._currentRoomViewModel?.id === roomId) {
|
||||||
console.log("bailing out");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// close if needed
|
// close if needed
|
||||||
|
Loading…
Reference in New Issue
Block a user