         }
 
         // set after updating so self.models has already been changed
-        self.resetRightBarItem()
+        updateUnreadState(count: notificationIDs.count)
     }
 
     private func rebuildAndUpdate(

        navigationController?.pushViewController(controller, animated: trueUnlessReduceMotionEnabled)
    }

    func resetRightBarItem() {
        let item = UIBarButtonItem(
            image: UIImage(named: "check"),
            style: .plain,


                // clear all badges
                BadgeNotifications.update(count: 0)

                // change the spinner to the mark all item
                // don't update state here; it is managed by `fetch`
                self.resetRightBarItem(updatingState: false)
            } else {
                generator.notificationOccurred(.error)
            }
