Removing some debug logs
This commit is contained in:
parent
2890f41f30
commit
58efe90f7d
|
@ -17,7 +17,6 @@
|
||||||
package im.vector.app.core.pushers
|
package im.vector.app.core.pushers
|
||||||
|
|
||||||
import im.vector.app.core.di.ActiveSessionHolder
|
import im.vector.app.core.di.ActiveSessionHolder
|
||||||
import timber.log.Timber
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
class EnsureFcmTokenIsRetrievedUseCase @Inject constructor(
|
class EnsureFcmTokenIsRetrievedUseCase @Inject constructor(
|
||||||
|
@ -29,7 +28,6 @@ class EnsureFcmTokenIsRetrievedUseCase @Inject constructor(
|
||||||
// TODO add unit tests
|
// TODO add unit tests
|
||||||
fun execute(pushersManager: PushersManager, registerPusher: Boolean) {
|
fun execute(pushersManager: PushersManager, registerPusher: Boolean) {
|
||||||
if (unifiedPushHelper.isEmbeddedDistributor()) {
|
if (unifiedPushHelper.isEmbeddedDistributor()) {
|
||||||
Timber.d("ensureFcmTokenIsRetrieved")
|
|
||||||
fcmHelper.ensureFcmTokenIsRetrieved(pushersManager, shouldAddHttpPusher(registerPusher))
|
fcmHelper.ensureFcmTokenIsRetrieved(pushersManager, shouldAddHttpPusher(registerPusher))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,11 +131,9 @@ class HomeActivityViewModel @AssistedInject constructor(
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
when (val result = registerUnifiedPushUseCase.execute(distributor = distributor)) {
|
when (val result = registerUnifiedPushUseCase.execute(distributor = distributor)) {
|
||||||
is RegisterUnifiedPushUseCase.RegisterUnifiedPushResult.NeedToAskUserForDistributor -> {
|
is RegisterUnifiedPushUseCase.RegisterUnifiedPushResult.NeedToAskUserForDistributor -> {
|
||||||
Timber.d("registerUnifiedPush $distributor need to ask user")
|
|
||||||
_viewEvents.post(HomeActivityViewEvents.AskUserForPushDistributor(result.distributors))
|
_viewEvents.post(HomeActivityViewEvents.AskUserForPushDistributor(result.distributors))
|
||||||
}
|
}
|
||||||
RegisterUnifiedPushUseCase.RegisterUnifiedPushResult.Success -> {
|
RegisterUnifiedPushUseCase.RegisterUnifiedPushResult.Success -> {
|
||||||
Timber.d("registerUnifiedPush $distributor success")
|
|
||||||
ensureFcmTokenIsRetrievedUseCase.execute(pushersManager, registerPusher = vectorPreferences.areNotificationEnabledForDevice())
|
ensureFcmTokenIsRetrievedUseCase.execute(pushersManager, registerPusher = vectorPreferences.areNotificationEnabledForDevice())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue