Removing some debug logs
This commit is contained in:
parent
2890f41f30
commit
58efe90f7d
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue