Skip to content

Commit

Permalink
correct naming
Browse files Browse the repository at this point in the history
  • Loading branch information
SabrinaTardio committed Nov 10, 2023
1 parent a91aa0c commit 2d8a8f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Core/SyncBookmarksAdapter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public final class SyncBookmarksAdapter {
public let syncDidCompletePublisher: AnyPublisher<Void, Never>
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 {
Expand Down Expand Up @@ -90,7 +90,7 @@ public final class SyncBookmarksAdapter {
syncDidUpdateData: { [syncDidCompleteSubject] in
syncDidCompleteSubject.send()
Self.isSyncBookmarksPaused = false
Self.wasSyncBookmarksErrorDisplayed = false
Self.didShowBookmarksSyncPausedError = false
}
)
if shouldResetBookmarksSyncTimestamp {
Expand Down Expand Up @@ -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
}
}
Expand Down
2 changes: 1 addition & 1 deletion DuckDuckGo/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2d8a8f7

Please sign in to comment.