emit focus_composer after updating the active room in GroupGridView

also change the active room from there so RoomView is oblivious
to grid view stuff
This commit is contained in:
Bruno Windels 2018-11-22 15:13:03 +00:00
parent fbfbefe4fe
commit 9a24249fb5
3 changed files with 31 additions and 6 deletions

View file

@ -60,6 +60,12 @@ class OpenRoomsStore extends Store {
}
}
getRoomStoreAt(index) {
if (index >= 0 && index < this._state.rooms.length) {
return this._state.rooms[index].store;
}
}
_getActiveOpenRoom() {
const index = this._state.currentIndex;
if (index !== null && index < this._state.rooms.length) {