Fix FCM not initialized crash.

This commit is contained in:
Cody Henthorne
2022-06-13 09:57:20 -04:00
committed by Greyson Parrelli
parent 2eb933c2d4
commit 5df20d755a
3 changed files with 9 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ class VerifyAccountRepository(private val context: Application) {
Log.d(TAG, "SMS Verification requested")
return Single.fromCallable {
val fcmToken: Optional<String> = FcmUtil.getToken()
val fcmToken: Optional<String> = FcmUtil.getToken(context)
val accountManager = AccountManagerFactory.createUnauthenticated(context, e164, SignalServiceAddress.DEFAULT_DEVICE_ID, password)
val pushChallenge = PushChallengeRequest.getPushChallengeBlocking(accountManager, fcmToken, e164, PUSH_REQUEST_TIMEOUT)