diff options
| author | Shravya Ramesh <shravs1208@gmail.com> | 2021-04-09 14:40:03 -0700 |
|---|---|---|
| committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-04-09 14:40:03 -0700 |
| commit | 3d26676ea1e818b585b4b224f643524994a0e893 (patch) | |
| tree | e21265fe5a24007cac2269fc7c2c08c8e780ed4f /src/routes/Routes.tsx | |
| parent | fbfb36b381216e0b50324064c79b0c0f5efc6a6c (diff) | |
Connecting during login, app entry, msg btn tap
Diffstat (limited to 'src/routes/Routes.tsx')
| -rw-r--r-- | src/routes/Routes.tsx | 5 |
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())) { |
