Skip to content

Commit 9917578

Browse files
committed
Adding announcements check to bookmarks page load
1 parent a5aad0d commit 9917578

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

App/View Controllers/Threads/BookmarksTableViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,7 @@ final class BookmarksTableViewController: HostedCollectionViewController {
957957
let threads = try await ForumsClient.shared.listBookmarkedThreads(page: page)
958958
latestPage = page
959959
RefreshMinder.sharedMinder.didRefresh(.bookmarks)
960+
RefreshMinder.sharedMinder.didRefresh(.announcements)
960961

961962
await MainActor.run {
962963
stopAnimatingPullToRefresh()

AwfulCore/Sources/AwfulCore/Networking/ForumsClient.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ public final class ForumsClient {
376376
let result = try ThreadListScrapeResult(document, url: url)
377377
let backgroundThreads = try await backgroundContext.perform {
378378
let threads = try result.upsert(into: backgroundContext)
379+
_ = try result.upsertAnnouncements(into: backgroundContext)
379380

380381
AwfulThread.fetch(in: backgroundContext) {
381382
let threadIDsToIgnore = threads.map { $0.threadID }

0 commit comments

Comments
 (0)