aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-04 13:48:56 -0400
committerGitHub <noreply@github.com>2021-05-04 13:48:56 -0400
commit0ae6415c3f8fec65bfb6996b773be6fe67a02d58 (patch)
treed6ae03e149dd6e8cd0f40cd0f097bc1dbb40b68e
parent751a673fed7613e99d1c8208e6f33ff9f28a11e1 (diff)
parent6727fb09c25651627099ccb4abf48fbfd99a59c7 (diff)
Merge pull request #391 from IvanIFChen/hotfix-unable-to-login
[HOTFIX] Failed to register fcm token with stream chat
-rw-r--r--src/screens/onboarding/Login.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screens/onboarding/Login.tsx b/src/screens/onboarding/Login.tsx
index 041fba05..3b970864 100644
--- a/src/screens/onboarding/Login.tsx
+++ b/src/screens/onboarding/Login.tsx
@@ -168,7 +168,7 @@ const Login: React.FC<LoginProps> = ({navigation}: LoginProps) => {
//Stores token received in the response into client's AsynStorage
try {
userLogin(dispatch, {userId: data.UserID, username});
- fcmService.sendFcmTokenToServer();
+ fcmService.sendFcmTokenToServer(chatClient);
connectChatAccount(data.UserID, chatClient);
} catch (err) {
Alert.alert(ERROR_INVALID_LOGIN);