File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
features/cells/src/main/java/com/wire/android/feature/cells/ui Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ data class CellFilesNavArgs(
2323 val isRecycleBin : Boolean? = false ,
2424 val breadcrumbs : Array <String >? = null ,
2525 val parentFolderUuid : String? = null ,
26- val isSearchByDefaultActive : Boolean = false ,
26+ val isSearchByDefaultActive : Boolean? = false ,
2727) {
2828
2929 override fun hashCode (): Int {
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ class CellViewModel @Inject constructor(
9999
100100 private val navArgs: CellFilesNavArgs = savedStateHandle.navArgs()
101101
102- val isSearchByDefaultActive: Boolean = navArgs.isSearchByDefaultActive
102+ val isSearchByDefaultActive: Boolean? = navArgs.isSearchByDefaultActive
103103
104104 // Show menu with actions for the selected file.
105105 private val _menu : MutableSharedFlow <MenuOptions > = MutableSharedFlow ()
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ fun ConversationFilesScreen(
105105 navigator : WireNavigator ,
106106 viewModel : CellViewModel = hiltViewModel(),
107107) {
108- val conversationSearchBarState = rememberSearchbarState(viewModel.isSearchByDefaultActive)
108+ val conversationSearchBarState = rememberSearchbarState(viewModel.isSearchByDefaultActive == true )
109109
110110 LaunchedEffect (conversationSearchBarState.searchQueryTextState.text) {
111111 viewModel.onSearchQueryUpdated(conversationSearchBarState.searchQueryTextState.text.toString())
You can’t perform that action at this time.
0 commit comments