Removing some debug logs

This commit is contained in:
Maxime NATUREL 2022-11-29 17:10:20 +01:00
parent 2890f41f30
commit 58efe90f7d
2 changed files with 0 additions and 4 deletions

View file

@ -17,7 +17,6 @@
package im.vector.app.core.pushers
import im.vector.app.core.di.ActiveSessionHolder
import timber.log.Timber
import javax.inject.Inject
class EnsureFcmTokenIsRetrievedUseCase @Inject constructor(
@ -29,7 +28,6 @@ class EnsureFcmTokenIsRetrievedUseCase @Inject constructor(
// TODO add unit tests
fun execute(pushersManager: PushersManager, registerPusher: Boolean) {
if (unifiedPushHelper.isEmbeddedDistributor()) {
Timber.d("ensureFcmTokenIsRetrieved")
fcmHelper.ensureFcmTokenIsRetrieved(pushersManager, shouldAddHttpPusher(registerPusher))
}
}

View file

@ -131,11 +131,9 @@ class HomeActivityViewModel @AssistedInject constructor(
viewModelScope.launch {
when (val result = registerUnifiedPushUseCase.execute(distributor = distributor)) {
is RegisterUnifiedPushUseCase.RegisterUnifiedPushResult.NeedToAskUserForDistributor -> {
Timber.d("registerUnifiedPush $distributor need to ask user")
_viewEvents.post(HomeActivityViewEvents.AskUserForPushDistributor(result.distributors))
}
RegisterUnifiedPushUseCase.RegisterUnifiedPushResult.Success -> {
Timber.d("registerUnifiedPush $distributor success")
ensureFcmTokenIsRetrievedUseCase.execute(pushersManager, registerPusher = vectorPreferences.areNotificationEnabledForDevice())
}
}