Bläddra i källkod

dev schema nextcloud

marinofaggiana 5 år sedan
förälder
incheckning
5ce145e17a
1 ändrade filer med 9 tillägg och 1 borttagningar
  1. 9 1
      iOSClient/AppDelegate.m

+ 9 - 1
iOSClient/AppDelegate.m

@@ -1586,7 +1586,15 @@ PKPushRegistry *pushRegistry;
                     [CATransaction commit];
                     
                 } else {
-                    // Show add account dialog
+                    
+                    NSString *domain = [[NSURL URLWithString:link] host];
+                    NSString *message = [NSString stringWithFormat:NSLocalizedString(@"_account_not_available_", nil), user];
+                    
+                    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"_info_", nil) message:message preferredStyle:UIAlertControllerStyleAlert];
+                    UIAlertAction *okAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"_ok_", nil) style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {}];
+                    
+                    [alertController addAction:okAction];
+                    [self.window.rootViewController presentViewController:alertController animated:YES completion:nil];
                 }
             }
         }