We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0401694 commit 06ebba8Copy full SHA for 06ebba8
app/src/main/java/to/bitkit/repositories/LightningRepo.kt
@@ -869,7 +869,7 @@ class LightningRepo @Inject constructor(
869
val token = token ?: firebaseMessaging.token.await()
870
val cachedToken = keychain.loadString(Keychain.Key.PUSH_NOTIFICATION_TOKEN.name)
871
872
- requireNotNull(token.takeIf { it.isNotEmpty() })
+ require(token.isNotEmpty()) { "FCM token is empty or null" }
873
874
if (cachedToken == token) {
875
Logger.debug("Skipped registering for notifications, current device token already registered")
0 commit comments