-
Notifications
You must be signed in to change notification settings - Fork 854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Push Notification - TwoFactor Notification #2525
Conversation
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## develop #2525 +/- ##
==========================================
+ Coverage 9.27% 9.32% +0.05%
==========================================
Files 185 185
Lines 25995 26026 +31
Branches 9715 9731 +16
==========================================
+ Hits 2411 2428 +17
- Misses 23364 23387 +23
+ Partials 220 211 -9
☔ View full report in Codecov by Sentry. |
@@ -280,11 +287,15 @@ class NCNotification: UITableViewController, NCNotificationCellDelegate, NCEmpty | |||
self.notifications.remove(at: index) | |||
} | |||
self.tableView.reloadData() | |||
if self.navigationController?.presentingViewController != nil, notification.app == NCGlobal.shared.twofactorNotificatioName { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
twofactorNotificatioName
is a typo -> twoFactorNotificationName
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
@@ -32,7 +32,8 @@ class NCApplicationHandle: NSObject { | |||
|
|||
// class: AppDelegate | |||
// func nextcloudPushNotificationAction(data: [String: AnyObject]) | |||
func nextcloudPushNotificationAction(data: [String: AnyObject]) { | |||
func nextcloudPushNotificationAction(data: [String: AnyObject], completion: @escaping (_ detected: Bool) -> Void) { | |||
completion(false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is detected
always false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was a old check (removed)
navigationController.modalPresentationStyle = .fullScreen | ||
self.window?.rootViewController?.present(navigationController, animated: true) | ||
} | ||
} else if !findAccount { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the else if
? We can just do else
#867