Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fixed Sync not checking internet connection before leaving the sync c…
Browse files Browse the repository at this point in the history
…hain.
  • Loading branch information
Brandon-T committed Nov 2, 2020
1 parent 52b0472 commit 0104f7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Client/Frontend/Sync/SyncSettingsTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ class SyncSettingsTableViewController: UITableViewController {
let alert = UIAlertController(title: Strings.syncRemoveThisDeviceQuestion, message: Strings.syncRemoveThisDeviceQuestionDesc, preferredStyle: .alert)
alert.addAction(UIAlertAction(title: Strings.cancelButtonTitle, style: .cancel, handler: nil))
alert.addAction(UIAlertAction(title: Strings.removeDevice, style: .destructive) { action in
if !DeviceInfo.hasConnectivity() {
self.present(SyncAlerts.noConnection, animated: true)
return
}

BraveSyncAPI.shared.leaveSyncGroup()
self.navigationController?.popToRootViewController(animated: true)
})
Expand Down

0 comments on commit 0104f7b

Please sign in to comment.