android, desktop: start/stop chat toggle refactoring (#5261)

* android, desktop: start/stop chat toggle refactoring

* changes

* translations

* better

* better

* do not start chat after export, always show run toggle (#5283)

* update heading

---------

Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
This commit is contained in:
Stanislav Dmitrenko
2024-11-30 23:33:38 +07:00
committed by GitHub
parent 961bdbfc59
commit 4738286f4e
43 changed files with 236 additions and 446 deletions

View File

@@ -28,6 +28,7 @@ import chat.simplex.common.model.ChatModel.withChats
import chat.simplex.common.platform.*
import chat.simplex.common.ui.theme.*
import chat.simplex.common.views.call.*
import chat.simplex.common.views.database.deleteOldChatArchive
import chat.simplex.common.views.helpers.*
import chat.simplex.common.views.onboarding.OnboardingStage
import com.jakewharton.processphoenix.ProcessPhoenix
@@ -72,6 +73,7 @@ class SimplexApp: Application(), LifecycleEventObserver {
runMigrations()
tmpDir.deleteRecursively()
tmpDir.mkdir()
deleteOldChatArchive()
// Present screen for continue migration if it wasn't finished yet
if (chatModel.migrationState.value != null) {