fix some outgoing packets

This commit is contained in:
dank074 2022-03-17 19:31:40 -05:00
parent 08d071b204
commit 010d02caca
2 changed files with 6 additions and 3 deletions

View File

@ -197,7 +197,7 @@ export const AchievementsView: FC<{}> = props =>
useEffect(() => useEffect(() =>
{ {
if(!isVisible || !isInitalized) return; if(!isVisible || isInitalized) return;
SendMessageComposer(new RequestAchievementsMessageComposer()); SendMessageComposer(new RequestAchievementsMessageComposer());
}, [ isVisible, isInitalized ]); }, [ isVisible, isInitalized ]);

View File

@ -220,10 +220,13 @@ export const NavigatorView: FC<{}> = props =>
flag: false flag: false
} }
}); });
SendMessageComposer(new NavigatorInitComposer());
}, [ isVisible, needsNavigatorUpdate ]); }, [ isVisible, needsNavigatorUpdate ]);
useEffect(() =>
{
SendMessageComposer(new NavigatorInitComposer());
}, []);
useEffect(() => useEffect(() =>
{ {
if(!topLevelContexts || !topLevelContexts.length) return; if(!topLevelContexts || !topLevelContexts.length) return;