Fixes push registration with empty token ids
This commit is contained in:
+7
-4
@@ -167,10 +167,13 @@ class RegisterAccounts(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun go(notificationToken: String) =
|
suspend fun go(notificationToken: String) {
|
||||||
withContext(Dispatchers.IO) {
|
if (notificationToken.isNotEmpty()) {
|
||||||
signEventsToProveControlOfAccounts(accounts, notificationToken) { postRegistrationEvent(it) }
|
withContext(Dispatchers.IO) {
|
||||||
|
signEventsToProveControlOfAccounts(accounts, notificationToken) { postRegistrationEvent(it) }
|
||||||
|
|
||||||
PushNotificationUtils.hasInit = true
|
PushNotificationUtils.hasInit = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user