This commit is contained in:
Bruno Windels 2022-02-10 16:28:44 +01:00
parent 30c8ea29b2
commit 15eecbb463

View file

@ -40,7 +40,7 @@ export class LeftPanelViewModel extends ViewModel {
_mapTileViewModels(roomsBeingCreated, invites, rooms) { _mapTileViewModels(roomsBeingCreated, invites, rooms) {
// join is not commutative, invites will take precedence over rooms // join is not commutative, invites will take precedence over rooms
const joined = invites.join(roomsBeingCreated, rooms).mapValues((item, emitChange) => { const allTiles = invites.join(roomsBeingCreated, rooms).mapValues((item, emitChange) => {
let vm; let vm;
if (item.isBeingCreated) { if (item.isBeingCreated) {
vm = new RoomBeingCreatedTileViewModel(this.childOptions({roomBeingCreated: item, emitChange})); vm = new RoomBeingCreatedTileViewModel(this.childOptions({roomBeingCreated: item, emitChange}));
@ -56,10 +56,7 @@ export class LeftPanelViewModel extends ViewModel {
} }
return vm; return vm;
}); });
return joined; return allTiles;
// return new LogMap(joined, (op, key, value) => {
// console.log("room list", op, key, value);
// });
} }
_updateCurrentVM(vm) { _updateCurrentVM(vm) {