Do not jump to top of the list when no search query present in story privacy.

This commit is contained in:
Alex Hart 2024-01-19 10:31:11 -04:00 committed by Greyson Parrelli
parent a36f31c2d0
commit cd8e07c102

View file

@ -119,7 +119,11 @@ abstract class BaseStoryRecipientSelectionFragment : Fragment(R.layout.stories_b
override fun onBeforeContactSelected(isFromUnknownSearchKey: Boolean, recipientId: Optional<RecipientId>, number: String?, callback: Consumer<Boolean>) {
viewModel.addRecipient(recipientId.get())
searchField.setText("")
if (searchField.text.isNotBlank()) {
searchField.setText("")
}
callback.accept(true)
}