mirror of
https://github.com/ouchadam/small-talk.git
synced 2025-01-03 05:22:39 +01:00
fixing wrong initial push registrar selection
This commit is contained in:
parent
eff150aebc
commit
2718728bb8
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user