ios: self destruct improvements

This commit is contained in:
Avently
2024-01-03 04:13:56 -08:00
parent 767522e701
commit 51a16cfdc2
7 changed files with 80 additions and 27 deletions
+3 -1
View File
@@ -101,7 +101,9 @@ func activateChat(appState: AppState = .active) {
}
}
func initChatAndMigrate(refreshInvitations: Bool = true) {
func initChatAndMigrate(ignoreSelfDestruct: Bool = false, refreshInvitations: Bool = true) {
if !ignoreSelfDestruct && kcSelfDestructPassword.get() != nil { return }
let m = ChatModel.shared
if (!m.chatInitialized) {
m.v3DBMigration = v3DBMigrationDefault.get()