Skip to content

Commit

Permalink
Remove reachability check (#23983)
Browse files Browse the repository at this point in the history
  • Loading branch information
kean authored Jan 17, 2025
1 parent 03009da commit 8b454c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8b454c7

Please sign in to comment.