mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-13 06:25:06 +00:00
ios: move hs_init to background thread (#3411)
This commit is contained in:
committed by
GitHub
parent
c40bfb0f43
commit
c1d89f2c0f
@@ -26,7 +26,9 @@ struct SimpleXApp: App {
|
||||
@State private var showInitializationView = false
|
||||
|
||||
init() {
|
||||
hs_init(0, nil)
|
||||
DispatchQueue.global(qos: .background).sync {
|
||||
hs_init(0, nil)
|
||||
}
|
||||
UserDefaults.standard.register(defaults: appDefaults)
|
||||
setGroupDefaults()
|
||||
registerGroupDefaults()
|
||||
|
||||
Reference in New Issue
Block a user