aboutsummaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/Routes.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/Routes.tsx b/src/routes/Routes.tsx
index adc6253b..5ce0c771 100644
--- a/src/routes/Routes.tsx
+++ b/src/routes/Routes.tsx
@@ -54,11 +54,14 @@ const Routes: React.FC = () => {
if (userId) {
fcmService.setUpPushNotifications();
fcmService.sendFcmTokenToServer();
- connectChatAccount(loggedInUserId, chatClient);
}
}, []);
useEffect(() => {
+ connectChatAccount(loggedInUserId, chatClient);
+ }, [loggedInUserId]);
+
+ useEffect(() => {
const checkVersion = async () => {
const liveVersions = await getCurrentLiveVersions();
if (liveVersions && !liveVersions.includes(DeviceInfo.getVersion())) {