From 10694aef08b2f56cfa80f9cd3480d86740fd7eb9 Mon Sep 17 00:00:00 2001 From: ohassine Date: Fri, 10 Jan 2025 18:55:17 +0100 Subject: [PATCH] fix: use base route --- .../main/kotlin/com/wire/android/util/CurrentScreenManager.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/wire/android/util/CurrentScreenManager.kt b/app/src/main/kotlin/com/wire/android/util/CurrentScreenManager.kt index da6cfd51d8..ef5453b0e0 100644 --- a/app/src/main/kotlin/com/wire/android/util/CurrentScreenManager.kt +++ b/app/src/main/kotlin/com/wire/android/util/CurrentScreenManager.kt @@ -29,6 +29,7 @@ import androidx.navigation.NavDestination import com.ramcosta.composedestinations.spec.DestinationSpec import com.wire.android.appLogger import com.wire.android.feature.analytics.AnonymousAnalyticsManagerImpl +import com.wire.android.navigation.getBaseRoute import com.wire.android.navigation.toDestination import com.wire.android.ui.destinations.ConversationScreenDestination import com.wire.android.ui.destinations.CreateAccountDetailsScreenDestination @@ -149,7 +150,7 @@ class CurrentScreenManager @Inject constructor( is CurrentScreen.ImportMedia, is CurrentScreen.DeviceManager -> return@let currentScreen.toScreenName() - else -> return@let (currentScreen as? CurrentScreen.SomeOther)?.route + else -> return@let (currentScreen as? CurrentScreen.SomeOther)?.route?.getBaseRoute() } }