summaryrefslogtreecommitdiffhomepage
path: root/ios
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2023-02-01 12:06:29 +0100
committerAndrej Mihajlov <and@mullvad.net>2023-02-03 10:58:39 +0100
commitfbd34d812f0cc7407cd410c49685b1f66d8d2e96 (patch)
tree68979f41092780e15cdf3b0ab87bf882f1700587 /ios
parent1f255382d34bf68f88b0b9b6c33117522578e33a (diff)
downloadmullvadvpn-fbd34d812f0cc7407cd410c49685b1f66d8d2e96.tar.xz
mullvadvpn-fbd34d812f0cc7407cd410c49685b1f66d8d2e96.zip
Show configuration errors in tunnel status notification
Diffstat (limited to 'ios')
-rw-r--r--ios/MullvadVPN/Notifications/Notification Providers/TunnelStatusNotificationProvider.swift8
1 files changed, 1 insertions, 7 deletions
diff --git a/ios/MullvadVPN/Notifications/Notification Providers/TunnelStatusNotificationProvider.swift b/ios/MullvadVPN/Notifications/Notification Providers/TunnelStatusNotificationProvider.swift
index 33642621d3..52f3b4d75c 100644
--- a/ios/MullvadVPN/Notifications/Notification Providers/TunnelStatusNotificationProvider.swift
+++ b/ios/MullvadVPN/Notifications/Notification Providers/TunnelStatusNotificationProvider.swift
@@ -53,13 +53,7 @@ final class TunnelStatusNotificationProvider: NotificationProvider, InAppNotific
private func handleTunnelStatus(_ tunnelStatus: TunnelStatus) {
let invalidateForTunnelError = updateLastTunnelError(
- tunnelStatus.packetTunnelStatus.lastErrors.first(where: {
- if case .wireguard = $0 {
- return true
- }
-
- return false
- })?.localizedDescription
+ tunnelStatus.packetTunnelStatus.lastErrors.first?.localizedDescription
)
let invalidateForManagerError = updateTunnelManagerError(tunnelStatus.state)
let invalidateForConnectivity = updateConnectivity(tunnelStatus.state)