fixing wrong initial push registrar selection

This commit is contained in:
Adam Brown 2022-09-11 22:48:06 +01:00 committed by Adam Brown
parent eff150aebc
commit 2718728bb8
1 changed files with 5 additions and 1 deletions

View File

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