From 8b454c7ccfa571296bd228ad5fcbc6dfda5b28e8 Mon Sep 17 00:00:00 2001 From: Alex Grebenyuk Date: Thu, 16 Jan 2025 19:28:18 -0500 Subject: [PATCH] Remove reachability check (#23983) --- .../Blog/Sharing/SharingConnectionsViewController.m | 5 ----- .../Blog/Sharing/SharingDetailViewController.m | 10 ---------- 2 files changed, 15 deletions(-) diff --git a/WordPress/Classes/ViewRelated/Blog/Sharing/SharingConnectionsViewController.m b/WordPress/Classes/ViewRelated/Blog/Sharing/SharingConnectionsViewController.m index 27061ce4c1ae..d4aec707d768 100644 --- a/WordPress/Classes/ViewRelated/Blog/Sharing/SharingConnectionsViewController.m +++ b/WordPress/Classes/ViewRelated/Blog/Sharing/SharingConnectionsViewController.m @@ -232,11 +232,6 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath - (void)handleConnectTapped:(NSIndexPath *)indexPath { - if (![ReachabilityUtils isInternetReachable]) { - [ReachabilityUtils showAlertNoInternetConnection]; - return; - } - if ([UIDevice isPad]) { UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath]; self.helper.popoverSourceView = cell.textLabel; diff --git a/WordPress/Classes/ViewRelated/Blog/Sharing/SharingDetailViewController.m b/WordPress/Classes/ViewRelated/Blog/Sharing/SharingDetailViewController.m index 67f06758b3e9..6e4824379d89 100644 --- a/WordPress/Classes/ViewRelated/Blog/Sharing/SharingDetailViewController.m +++ b/WordPress/Classes/ViewRelated/Blog/Sharing/SharingDetailViewController.m @@ -238,11 +238,6 @@ - (void)updateSharedGlobally:(BOOL)shared - (void)reconnectPublicizeConnection { - if (![ReachabilityUtils isInternetReachable]) { - [ReachabilityUtils showAlertNoInternetConnection]; - return; - } - SharingService *sharingService = [[SharingService alloc] initWithContextManager:[ContextManager sharedInstance]]; __weak __typeof(self) weakSelf = self; @@ -273,11 +268,6 @@ - (void)disconnectPublicizeConnection - (void)promptToConfirmDisconnect { - if (![ReachabilityUtils isInternetReachable]) { - [ReachabilityUtils showAlertNoInternetConnection]; - return; - } - NSString *message = NSLocalizedString(@"Disconnecting this account means published posts will no longer be automatically shared to %@", @"Explanatory text for the user. The `%@` is a placeholder for the name of a third-party sharing service."); message = [NSString stringWithFormat:message, self.publicizeConnection.label]; UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil