forked from mystiq/hydrogen-web
also in grid remove room id from nav path when refreshing room vm fails
This commit is contained in:
parent
c47b27428b
commit
396ec4dfd9
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,7 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
import {ViewModel} from "../ViewModel.js";
|
||||
import {removeRoomFromPath} from "../navigation/index.js";
|
||||
|
||||
function dedupeSparse(roomIds) {
|
||||
return roomIds.map((id, idx) => {
|
||||
|
@ -77,6 +78,9 @@ export class RoomGridViewModel extends ViewModel {
|
|||
if (this.focusIndex === index) {
|
||||
roomVM.focus();
|
||||
}
|
||||
} else {
|
||||
// close room id
|
||||
this.navigation.applyPath(removeRoomFromPath(this.navigation.path, roomId));
|
||||
}
|
||||
this.emitChange();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue