From 3c0bd510b9a7639f9221d97562b70cfc3ee550df Mon Sep 17 00:00:00 2001 From: Graeme Arthur Date: Sat, 30 Sep 2023 06:05:16 +0100 Subject: [PATCH] Remove duplicate NetP notifications (#2057) Task/Issue URL: https://app.asana.com/0/0/1205617766971743/f Description: On introducing notifications to NetP, I noticed that they were a big noisy. This PR can be merged to deal with that if we agree. --- .../NetworkProtectionUNNotificationPresenter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PacketTunnelProvider/NetworkProtection/NetworkProtectionUNNotificationPresenter.swift b/PacketTunnelProvider/NetworkProtection/NetworkProtectionUNNotificationPresenter.swift index d6ded6b551..7ada176e81 100644 --- a/PacketTunnelProvider/NetworkProtection/NetworkProtectionUNNotificationPresenter.swift +++ b/PacketTunnelProvider/NetworkProtection/NetworkProtectionUNNotificationPresenter.swift @@ -101,7 +101,7 @@ final class NetworkProtectionUNNotificationPresenter: NSObject, NetworkProtectio guard authorized else { return } - + self.userNotificationCenter.removeDeliveredNotifications(withIdentifiers: [identifier.rawValue]) self.userNotificationCenter.add(request) } }