diff --git a/Core/SyncBookmarksAdapter.swift b/Core/SyncBookmarksAdapter.swift index 78853ad06a..5752c090dc 100644 --- a/Core/SyncBookmarksAdapter.swift +++ b/Core/SyncBookmarksAdapter.swift @@ -37,7 +37,7 @@ public final class SyncBookmarksAdapter { public let syncDidCompletePublisher: AnyPublisher public let widgetRefreshCancellable: AnyCancellable public static let syncBookmarksPausedStateChanged = Notification.Name("com.duckduckgo.app.SyncPausedStateChanged") - public static let notifyBookmarksSyncLimitReached = Notification.Name("com.duckduckgo.app.SyncBookmarksLimitReached") + public static let bookmarksSyncLimitReached = Notification.Name("com.duckduckgo.app.SyncBookmarksLimitReached") public var shouldResetBookmarksSyncTimestamp: Bool = false { willSet { @@ -90,7 +90,7 @@ public final class SyncBookmarksAdapter { syncDidUpdateData: { [syncDidCompleteSubject] in syncDidCompleteSubject.send() Self.isSyncBookmarksPaused = false - Self.wasSyncBookmarksErrorDisplayed = false + Self.didShowBookmarksSyncPausedError = false } ) if shouldResetBookmarksSyncTimestamp { @@ -132,7 +132,7 @@ public final class SyncBookmarksAdapter { static private func notifyBookmarksSyncLimitReached() { if !Self.didShowBookmarksSyncPausedError { - NotificationCenter.default.post(name: Self.notifyBookmarksSyncLimitReached, object: nil) + NotificationCenter.default.post(name: Self.bookmarksSyncLimitReached, object: nil) Self.didShowBookmarksSyncPausedError = true } } diff --git a/DuckDuckGo/MainViewController.swift b/DuckDuckGo/MainViewController.swift index a357107a54..41e5562065 100644 --- a/DuckDuckGo/MainViewController.swift +++ b/DuckDuckGo/MainViewController.swift @@ -329,7 +329,7 @@ class MainViewController: UIViewController { NotificationCenter.default.addObserver( self, selector: #selector(showSyncPausedError), - name: SyncBookmarksAdapter.notifyBookmarksSyncLimitReached, + name: SyncBookmarksAdapter.bookmarksSyncLimitReached, object: nil) NotificationCenter.default.addObserver( self,