Fixed several main thread hangs

This commit is contained in:
Benoit Martins 2025-06-12 15:46:50 +02:00
parent 3883d89aa7
commit c90fef2c56
2 changed files with 4 additions and 4 deletions

View file

@ -143,7 +143,9 @@ class ContactAvatarModel: ObservableObject, Identifiable {
func removeFriendDelegate() {
if let delegate = friendDelegate {
presenceStatus = .Offline
DispatchQueue.main.async {
self.presenceStatus = .Offline
}
if let friendTmp = friend {
friendTmp.removeDelegate(delegate: delegate)
}

View file

@ -93,9 +93,7 @@ class Log: LoggingServiceDelegate {
}
#if USE_CRASHLYTICS
if FirebaseApp.app() != nil {
DispatchQueue.global(qos: .background).async {
Crashlytics.crashlytics().log(log)
}
Crashlytics.crashlytics().log(log)
}
#endif
}