forked from mystiq/hydrogen-web
cleanup
This commit is contained in:
parent
30c8ea29b2
commit
15eecbb463
1 changed files with 2 additions and 5 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue