瀏覽代碼

new handle

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 1 年之前
父節點
當前提交
46e90030d0
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 4 0
      ExternalResources/NCApplicationHandle.swift
  2. 2 0
      iOSClient/Notification/NCNotification.swift

+ 4 - 0
ExternalResources/NCApplicationHandle.swift

@@ -78,4 +78,8 @@ class NCApplicationHandle: NSObject {
     func filterPages(pages: [NCBrandOptions.NCInfoPagingTab], page: NCBrandOptions.NCInfoPagingTab, metadata: tableMetadata) -> ([NCBrandOptions.NCInfoPagingTab], NCBrandOptions.NCInfoPagingTab) {
         return (pages, page)
     }
+
+    // class: NCNotification
+    func didSelectNotification(_ notification: NKNotifications) {
+    }
 }

+ 2 - 0
iOSClient/Notification/NCNotification.swift

@@ -158,6 +158,8 @@ class NCNotification: UITableViewController, NCNotificationCellDelegate, NCEmpty
                     NCContentPresenter.shared.showError(error: error)
                 }
             }
+        } else {
+            NCApplicationHandle().didSelectNotification(notification)
         }
     }