stop archives when not activated

This commit is contained in:
TELEMESSAGE\Shilo 2024-03-19 19:06:15 +02:00
parent 616d9c9988
commit 15f30b6d9a
2 changed files with 2 additions and 1 deletions

View file

@ -161,7 +161,6 @@ public final class RegistrationRepository {
ApplicationDependencies.getRecipientCache().clearSelf();
SignalStore.account().setE164(registrationData.getE164());
Log.i("RegistrationRepository","registerAccountInternal -> fcmToken: "+registrationData.getFcmToken());//**TM_SA TODO remove ASAP!**//
SignalStore.account().setFcmToken(registrationData.getFcmToken());
SignalStore.account().setFcmEnabled(registrationData.isFcm());

View file

@ -16,6 +16,7 @@ import com.tm.androidcopysdk.CommonUtils
import com.tm.androidcopysdk.model.resource.ResourceStatus
import com.tm.androidcopysdk.network.appSettings.UpdateEvent
import com.tm.androidcopysdk.utils.PrefManager
import com.tm.androidcopysdk.utils.PrefManagerConstants
import com.tm.authenticatorsdk.mamsdk.IMDMAuthenticator
import com.tm.authenticatorsdk.mamsdk.MDMAuthenticator.isMDM
import com.tm.authenticatorsdk.mamsdk.MDMAuthenticator.startMDMAuthenticator
@ -163,6 +164,7 @@ class TMEnterSmsCodeFragment : EnterSmsCodeFragment(), IAuthenticationStatus, IM
continueSignalFlow()
} else if (event.type == UpdateEvent.EVENTS_TYPE.suspension) {
CommonUtils.setActivatedUser(requireContext(), false)
PrefManager.setBooleanPref(requireContext(), PrefManagerConstants.SHARED_PREFERENCE_ACTIVATED_AA_KEY, false)
val dialogBuilder = SelfAuthenticationDialogBuilder()
dialogBuilder.logCallback.observe(this) { result ->
when (result) {