From 6cacd820a5eea909ef6b83f6039700078795266a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20G=C3=B6ransson?= Date: Wed, 7 Aug 2024 12:56:45 +0200 Subject: [PATCH] Fix incorrect unsecured in Login screen --- .../tunnelstate/TunnelStateNotificationProvider.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/tunnelstate/TunnelStateNotificationProvider.kt b/android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/tunnelstate/TunnelStateNotificationProvider.kt index 7c1ac942b336..007c83673fa7 100644 --- a/android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/tunnelstate/TunnelStateNotificationProvider.kt +++ b/android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/notifications/tunnelstate/TunnelStateNotificationProvider.kt @@ -8,6 +8,7 @@ import kotlinx.coroutines.flow.combine import kotlinx.coroutines.flow.distinctUntilChanged import kotlinx.coroutines.flow.filterIsInstance import kotlinx.coroutines.flow.map +import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.onStart import kotlinx.coroutines.flow.stateIn import net.mullvad.mullvadvpn.lib.model.ActionAfterDisconnect @@ -41,9 +42,6 @@ class TunnelStateNotificationProvider( deviceRepository.deviceState ) { tunnelState: TunnelState, actionAfterDisconnect: ActionAfterDisconnect?, deviceState -> - if (deviceState is DeviceState.LoggedOut) { - return@combine NotificationUpdate.Cancel(notificationId) - } val notificationTunnelState = tunnelState( tunnelState,