Fix app stuck on welcome screen in small device

This commit is contained in:
Ajay Bura 2022-04-24 16:35:42 +05:30
commit 53f1129242
7 changed files with 16 additions and 31 deletions

View file

@ -6,6 +6,7 @@ import cons from '../../../client/state/cons';
import settings from '../../../client/state/settings';
import RoomTimeline from '../../../client/state/RoomTimeline';
import navigation from '../../../client/state/navigation';
import { openNavigation } from '../../../client/action/navigation';
import Welcome from '../welcome/Welcome';
import RoomView from './RoomView';
@ -53,7 +54,10 @@ function Room() {
}, []);
const { roomTimeline, eventId } = roomInfo;
if (roomTimeline === null) return <Welcome />;
if (roomTimeline === null) {
setTimeout(() => openNavigation());
return <Welcome />;
}
return (
<div className="room">