Add completion callbacks so that we can ensure that unreads have been marked before determining the next unread. Fixes #2993

This commit is contained in:
Maurice Parker
2021-04-12 19:41:01 -05:00
parent 3a1b3f96bb
commit c95daa208f
14 changed files with 60 additions and 41 deletions

View File

@@ -58,8 +58,9 @@ class RootSplitViewController: UISplitViewController {
}
@objc func markAllAsReadAndGoToNextUnread(_ sender: Any?) {
coordinator.markAllAsReadInTimeline()
coordinator.selectNextUnread()
coordinator.markAllAsReadInTimeline() {
self.coordinator.selectNextUnread()
}
}
@objc func markAboveAsRead(_ sender: Any?) {