Only record query breadcrumbs when the search is submitted

Queries were previously stored whenever a result was selected, which
meant half-typed queries ended up in the history. Now a query is only
recorded when the user submits the search field, while selecting a
result only records the room.
This commit is contained in:
Stefan Ceriu
2026-09-29 14:53:02 +03:00
parent bc018251c7
commit 313365ad83
4 changed files with 22 additions and 12 deletions
@@ -48,6 +48,7 @@ struct SearchScreenViewStateBindings {
enum SearchScreenViewAction {
case appeared
case submitQuery
case selectRoom(roomID: String)
case selectMessage(roomID: String, eventID: String)
case reachedTop