avoiding push token registration when signed out
This commit is contained in:
parent
8499017777
commit
0a3f1f641a
|
@ -54,7 +54,9 @@ class SmallTalkApplication : Application(), ModuleProvider {
|
|||
|
||||
private fun onApplicationLaunch(notificationsModule: NotificationsModule, storeModule: StoreModule) {
|
||||
applicationScope.launch {
|
||||
featureModules.pushModule.pushTokenRegistrar().registerCurrentToken()
|
||||
storeModule.credentialsStore().credentials()?.let {
|
||||
featureModules.pushModule.pushTokenRegistrar().registerCurrentToken()
|
||||
}
|
||||
storeModule.localEchoStore.preload()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue