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 17a57bd commit 50c8b2fCopy full SHA for 50c8b2f
app/src/main/java/to/bitkit/repositories/LightningRepo.kt
@@ -872,6 +872,8 @@ class LightningRepo @Inject constructor(
872
val token = token ?: firebaseMessaging.token.await()
873
val cachedToken = keychain.loadString(Keychain.Key.PUSH_NOTIFICATION_TOKEN.name)
874
875
+ requireNotNull(token.takeIf { it.isNotEmpty() })
876
+
877
if (cachedToken == token) {
878
Logger.debug("Skipped registering for notifications, current device token already registered")
879
return@executeWhenNodeRunning Result.success(Unit)
0 commit comments