diff --git a/SignalMessaging/contacts/SystemContactsFetcher.swift b/SignalMessaging/contacts/SystemContactsFetcher.swift index b4c750fca..d11be0f6a 100644 --- a/SignalMessaging/contacts/SystemContactsFetcher.swift +++ b/SignalMessaging/contacts/SystemContactsFetcher.swift @@ -121,6 +121,9 @@ public enum ContactStoreAuthorizationStatus { public class SystemContactsFetcher: NSObject { private let TAG = "[SystemContactsFetcher]" + + private let serialQueue = DispatchQueue(label: "SystemContactsFetcherQueue") + var lastContactUpdateHash: Int? var lastDelegateNotificationDate: Date? let contactStoreAdapter: ContactsFrameworkContactStoreAdaptee @@ -280,7 +283,7 @@ public class SystemContactsFetcher: NSObject { systemContactsHaveBeenRequestedAtLeastOnce = true setupObservationIfNecessary() - DispatchQueue.global().async { + serialQueue.async { Logger.info("\(self.TAG) fetching contacts")