From 5060f82a687a0d3d2a384f06d6d49fbb677e0913 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Wed, 6 May 2020 10:35:42 +1000 Subject: [PATCH] Fix build --- .../Loki/Protocol/Sync Messages/SyncMessagesProtocol.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)