Skip to content

Commit

Permalink
fix: use base route
Browse files Browse the repository at this point in the history
  • Loading branch information
ohassine committed Jan 10, 2025
1 parent 262e37f commit 10694ae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 10694ae

Please sign in to comment.