浏览代码

https://github.com/nextcloud/ios/pull/1698

marinofaggiana 3 年之前
父节点
当前提交
0ef6552155
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      iOSClient/Notification/NCNotification.swift

+ 5 - 0
iOSClient/Notification/NCNotification.swift

@@ -265,6 +265,11 @@ class NCNotification: UITableViewController, NCNotificationCellDelegate, NCEmpty
                         let serverUrl = action["link"].stringValue
                         let method = action["type"].stringValue
                             
+                        if method == "WEB", let url = action["link"].url {
+                            UIApplication.shared.open(url, options: [:], completionHandler: nil)
+                            return
+                        }
+                        
                         NCCommunication.shared.setNotification(serverUrl: serverUrl, idNotification: 0, method: method) { (account, errorCode, errorDescription) in
                             
                             if errorCode == 0 && account == self.appDelegate.account {