fixing blank screen when Hide Navigation by Default was set with mobile width

This commit is contained in:
duarm 2022-10-01 16:52:31 -03:00 committed by duarm
parent 9e7cd4b627
commit 1c592ec652

View file

@ -37,10 +37,14 @@ function Client() {
function onRoomSelected() {
navWrapperRef.current?.classList.add(classNameHidden);
roomWrapperRef.current?.classList.remove(classNameHidden);
selectRoom(navigation.selectedRoomId);
if (settings.hideNavigation) {
selectRoom(navigation.selectedRoomId);
navWrapperRef.current?.classList.add(toggleHidden);
}
}
function onNavigationSelected() {
navWrapperRef.current?.classList.remove(classNameHidden);
navWrapperRef.current?.classList.remove(toggleHidden);
roomWrapperRef.current?.classList.add(classNameHidden);
}
function onNavigationToggled() {