fixing wrong initial push registrar selection

This commit is contained in:
Adam Brown 2022-09-11 22:48:06 +01:00
parent fdd1ca61e8
commit ee3d41a741
1 changed files with 5 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class PushTokenRegistrars(
}
override suspend fun registerCurrentToken() {
when (selection) {
when (currentSelection()) {
FIREBASE_OPTION -> messagingPushTokenRegistrar.registerCurrentToken()
NONE -> {
// do nothing
@ -75,6 +75,10 @@ class PushTokenRegistrars(
}
}
null -> {
// do nothing
}
else -> unifiedPushRegistrar.unregister()
}
}