We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ReviewDetailsViewController
1 parent 34b5eda commit fa0653dCopy full SHA for fa0653d
WooCommerce/Classes/ViewRelated/Reviews/ReviewDetailsViewController.swift
@@ -75,6 +75,7 @@ final class ReviewDetailsViewController: UIViewController {
75
override func viewWillAppear(_ animated: Bool) {
76
super.viewWillAppear(animated)
77
markAsReadIfNeeded(notification)
78
+ resetApplicationBadge()
79
}
80
81
override var shouldShowOfflineBanner: Bool {
@@ -127,6 +128,12 @@ private extension ReviewDetailsViewController {
127
128
func reloadRows() {
129
rows = [.header, .content]
130
131
+
132
+ /// Nukes the BadgeCount
133
+ ///
134
+ func resetApplicationBadge() {
135
+ ServiceLocator.pushNotesManager.resetBadgeCount(type: .comment)
136
+ }
137
138
139
0 commit comments