Fix build

pull/186/head
nielsandriesse 5 years ago
parent 0a3b1a20cd
commit 5060f82a68

@ -25,10 +25,9 @@ public final class SyncMessagesProtocol : NSObject {
} }
@objc(syncContactWithHexEncodedPublicKey:in:) @objc(syncContactWithHexEncodedPublicKey:in:)
public static func syncContact(_ hexEncodedPublicKey: String, in transaction: YapDatabaseReadTransaction) { public static func syncContact(_ hexEncodedPublicKey: String, in transaction: YapDatabaseReadTransaction) -> AnyPromise {
guard TSContactThread.getWithContactId(hexEncodedPublicKey, transaction: transaction) != nil else { return }
let syncManager = SSKEnvironment.shared.syncManager let syncManager = SSKEnvironment.shared.syncManager
syncManager.syncContacts(for: [ SignalAccount(recipientId: hexEncodedPublicKey) ]) return syncManager.syncContacts(for: [ SignalAccount(recipientId: hexEncodedPublicKey) ])
} }
@objc(syncAllContacts) @objc(syncAllContacts)

Loading…
Cancel
Save