Delay initial contact sync

pull/63/head
Niels Andriesse 6 years ago
parent b55c751358
commit e65614ac31

@ -148,7 +148,9 @@ final class DeviceLinkingModal : Modal, DeviceLinkingSessionDelegate {
LokiStorageAPI.addDeviceLink(signedDeviceLink).catch { error in
print("[Loki] Failed to add device link due to error: \(error).")
}
let _ = SSKEnvironment.shared.syncManager.syncAllContacts()
Timer.scheduledTimer(withTimeInterval: 8, repeats: false) { _ in
let _ = SSKEnvironment.shared.syncManager.syncAllContacts()
}
}
func handleDeviceLinkAuthorized(_ deviceLink: DeviceLink) {

Loading…
Cancel
Save