|
|
@@ -58,7 +58,7 @@ import { openDatabases } from './src/db';
|
|
|
|
|
|
import TabBarButton from './src/components/TabBarButton';
|
|
|
import { ParamListBase, RouteProp, useIsFocused } from '@react-navigation/native';
|
|
|
-import setupDatabaseAndSync, { initializeDatabase } from 'src/database';
|
|
|
+import setupDatabaseAndSync, { initializeDatabase, invalidateMapCache } from 'src/database';
|
|
|
import { MenuDrawer } from 'src/components';
|
|
|
import { API_URL, APP_VERSION } from 'src/constants';
|
|
|
import {
|
|
|
@@ -220,6 +220,7 @@ const Route = () => {
|
|
|
// await checkTokenAndUpdate();
|
|
|
await openDatabases();
|
|
|
setDbLoaded(true);
|
|
|
+ await invalidateMapCache();
|
|
|
updateNotificationStatus();
|
|
|
updateUnreadMessagesCount();
|
|
|
if (uid && token) {
|
|
|
@@ -244,8 +245,8 @@ const Route = () => {
|
|
|
const hideSplashScreen = async () => {
|
|
|
if (fontsLoaded) {
|
|
|
await SplashScreen.hideAsync();
|
|
|
- await fetchAndSaveUserInfo();
|
|
|
await setupDatabaseAndSync();
|
|
|
+ await fetchAndSaveUserInfo();
|
|
|
}
|
|
|
};
|
|
|
|