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) {
|
private fun onApplicationLaunch(notificationsModule: NotificationsModule, storeModule: StoreModule) {
|
||||||
applicationScope.launch {
|
applicationScope.launch {
|
||||||
|
storeModule.credentialsStore().credentials()?.let {
|
||||||
featureModules.pushModule.pushTokenRegistrar().registerCurrentToken()
|
featureModules.pushModule.pushTokenRegistrar().registerCurrentToken()
|
||||||
|
}
|
||||||
storeModule.localEchoStore.preload()
|
storeModule.localEchoStore.preload()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue