diff --git a/SignalServiceKit/src/Loki/Protocol/Sync Messages/SyncMessagesProtocol.swift b/SignalServiceKit/src/Loki/Protocol/Sync Messages/SyncMessagesProtocol.swift index a5ef9e71c..d7e905e4b 100644 --- a/SignalServiceKit/src/Loki/Protocol/Sync Messages/SyncMessagesProtocol.swift +++ b/SignalServiceKit/src/Loki/Protocol/Sync Messages/SyncMessagesProtocol.swift @@ -25,10 +25,9 @@ public final class SyncMessagesProtocol : NSObject { } @objc(syncContactWithHexEncodedPublicKey:in:) - public static func syncContact(_ hexEncodedPublicKey: String, in transaction: YapDatabaseReadTransaction) { - guard TSContactThread.getWithContactId(hexEncodedPublicKey, transaction: transaction) != nil else { return } + public static func syncContact(_ hexEncodedPublicKey: String, in transaction: YapDatabaseReadTransaction) -> AnyPromise { let syncManager = SSKEnvironment.shared.syncManager - syncManager.syncContacts(for: [ SignalAccount(recipientId: hexEncodedPublicKey) ]) + return syncManager.syncContacts(for: [ SignalAccount(recipientId: hexEncodedPublicKey) ]) } @objc(syncAllContacts)