mirror of
https://github.com/micahflee/TM-SGNL-Android.git
synced 2025-08-04 19:08:33 +00:00
stop archives when not activated
This commit is contained in:
parent
616d9c9988
commit
15f30b6d9a
2 changed files with 2 additions and 1 deletions
|
@ -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());
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue