From 3e1e148892ad288cd742974d4d06ac4a2fd2380d Mon Sep 17 00:00:00 2001 From: Sam Symons Date: Wed, 15 Nov 2023 21:03:20 -0800 Subject: [PATCH] Tidy up whitespace in the diff. --- DuckDuckGo/MacWaitlistViewController.swift | 1 - DuckDuckGo/WindowsWaitlistViewController.swift | 1 - LocalPackages/Waitlist/Sources/Waitlist/WaitlistViewModel.swift | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/DuckDuckGo/MacWaitlistViewController.swift b/DuckDuckGo/MacWaitlistViewController.swift index 19c3f05a70..ee6f58d99b 100644 --- a/DuckDuckGo/MacWaitlistViewController.swift +++ b/DuckDuckGo/MacWaitlistViewController.swift @@ -99,7 +99,6 @@ extension MacWaitlistViewController: WaitlistViewModelDelegate { navigationController?.pushViewController(windowsWaitlistViewController, animated: true) } } - } private final class MacWaitlistLinkMetadata: NSObject, UIActivityItemSource { diff --git a/DuckDuckGo/WindowsWaitlistViewController.swift b/DuckDuckGo/WindowsWaitlistViewController.swift index c130b99c62..9ba9d561e4 100644 --- a/DuckDuckGo/WindowsWaitlistViewController.swift +++ b/DuckDuckGo/WindowsWaitlistViewController.swift @@ -143,7 +143,6 @@ extension WindowsWaitlistViewController: WaitlistViewModelDelegate { navigationController?.pushViewController(macWaitlistViewController, animated: true) } } - } private final class WindowsWaitlistLinkMetadata: NSObject, UIActivityItemSource { diff --git a/LocalPackages/Waitlist/Sources/Waitlist/WaitlistViewModel.swift b/LocalPackages/Waitlist/Sources/Waitlist/WaitlistViewModel.swift index 4802594be3..241120f08a 100644 --- a/LocalPackages/Waitlist/Sources/Waitlist/WaitlistViewModel.swift +++ b/LocalPackages/Waitlist/Sources/Waitlist/WaitlistViewModel.swift @@ -27,6 +27,7 @@ public protocol WaitlistViewModelDelegate: AnyObject { func waitlistViewModelDidJoinQueueWithNotificationsAllowed(_ viewModel: WaitlistViewModel) func waitlistViewModelDidOpenInviteCodeShareSheet(_ viewModel: WaitlistViewModel, inviteCode: String, senderFrame: CGRect) func waitlistViewModelDidOpenDownloadURLShareSheet(_ viewModel: WaitlistViewModel, senderFrame: CGRect) + func waitlistViewModel(_ viewModel: WaitlistViewModel, didTriggerCustomAction action: WaitlistViewModel.ViewCustomAction) } @@ -97,7 +98,6 @@ public final class WaitlistViewModel: ObservableObject { guard viewState != .waitlistRemoved else { return } - if waitlistStorage.getWaitlistTimestamp() != nil, waitlistStorage.getWaitlistInviteCode() == nil { await checkNotificationPermissions() } else if let inviteCode = waitlistStorage.getWaitlistInviteCode() {