         navigationController?.pushViewController(controller, animated: trueUnlessReduceMotionEnabled)
     }
 
-    func resetRightBarItem() {
+    func resetRightBarItem(updatingState updateState: Bool = true) {
         let item = UIBarButtonItem(
             image: UIImage(named: "check"),
             style: .plain,


                // clear all badges
                BadgeNotifications.update(count: 0)
            } else {
                generator.notificationOccurred(.error)
            }

        )
        item.accessibilityLabel = NSLocalizedString("Mark notifications read", comment: "")
        navigationItem.rightBarButtonItem = item
        if updateState {
            updateUnreadState(count: notificationIDs.count)
        }
    }

    private func updateUnreadState(count: Int) {
