mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-11 02:53:43 +02:00
Fixes push registration with empty token ids
This commit is contained in:
@@ -167,10 +167,13 @@ class RegisterAccounts(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun go(notificationToken: String) =
|
suspend fun go(notificationToken: String) {
|
||||||
|
if (notificationToken.isNotEmpty()) {
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
signEventsToProveControlOfAccounts(accounts, notificationToken) { postRegistrationEvent(it) }
|
signEventsToProveControlOfAccounts(accounts, notificationToken) { postRegistrationEvent(it) }
|
||||||
|
|
||||||
PushNotificationUtils.hasInit = true
|
PushNotificationUtils.hasInit = true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user