|
|
@ -148,7 +148,9 @@ final class DeviceLinkingModal : Modal, DeviceLinkingSessionDelegate {
|
|
|
|
LokiStorageAPI.addDeviceLink(signedDeviceLink).catch { error in
|
|
|
|
LokiStorageAPI.addDeviceLink(signedDeviceLink).catch { error in
|
|
|
|
print("[Loki] Failed to add device link due to error: \(error).")
|
|
|
|
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) {
|
|
|
|
func handleDeviceLinkAuthorized(_ deviceLink: DeviceLink) {
|
|
|
|