Relying on the home config sync

This commit is contained in:
ThomasSession 2024-08-06 14:58:54 +10:00
parent 96dded096f
commit 514c19e33f
2 changed files with 3 additions and 7 deletions

View File

@ -355,12 +355,9 @@ class HomeActivity : PassphraseRequiredActionBarActivity(),
updateLegacyConfigView()
// TODO: remove this after enough updates that we can rely on ConfigBase.isNewConfigEnabled to always return true
// This will only run if we aren't using new configs, as they are schedule to sync when there are changes applied
if (textSecurePreferences.getConfigurationMessageSynced()) {
lifecycleScope.launch(Dispatchers.IO) {
ConfigurationMessageUtilities.syncConfigurationIfNeeded(this@HomeActivity)
}
// Sync config changes if there are any
lifecycleScope.launch(Dispatchers.IO) {
ConfigurationMessageUtilities.syncConfigurationIfNeeded(this@HomeActivity)
}
}

View File

@ -45,7 +45,6 @@ class CreateAccountManager @Inject constructor(
configFactory.keyPairChanged()
configFactory.user?.setName(displayName)
ConfigurationMessageUtilities.forceSyncConfigurationNowIfNeeded(application)
versionDataFetcher.startTimedVersionCheck()
}