aboutsummaryrefslogtreecommitdiff
path: root/src/routes/Routes.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-23 16:36:14 -0400
committerGitHub <noreply@github.com>2021-04-23 16:36:14 -0400
commitfc6e1452bb615e6d2cdf9a3cf812931aa34054e7 (patch)
treee90368915c33d1b6d922a7536b16673d2e3ff5eb /src/routes/Routes.tsx
parent5acc51f2d74ee536aeb4d7dcf94aba4ab63b4ed7 (diff)
parent77082b5cd9c095af6fc289ed24b284c4b738a59d (diff)
Merge pull request #385 from IvanIFChen/tma813-chat-push-notification
[TMA-813] Chat push notification
Diffstat (limited to 'src/routes/Routes.tsx')
-rw-r--r--src/routes/Routes.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/Routes.tsx b/src/routes/Routes.tsx
index 6fc766ab..384021bc 100644
--- a/src/routes/Routes.tsx
+++ b/src/routes/Routes.tsx
@@ -52,9 +52,9 @@ const Routes: React.FC = () => {
useEffect(() => {
if (userId) {
fcmService.setUpPushNotifications();
- fcmService.sendFcmTokenToServer();
+ fcmService.sendFcmTokenToServer(chatClient);
}
- }, []);
+ });
useEffect(() => {
if (loggedInUserId) {