mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
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:
@@ -48,6 +48,7 @@ struct SearchScreenViewStateBindings {
|
||||
|
||||
enum SearchScreenViewAction {
|
||||
case appeared
|
||||
case submitQuery
|
||||
case selectRoom(roomID: String)
|
||||
case selectMessage(roomID: String, eventID: String)
|
||||
case reachedTop
|
||||
|
||||
Reference in New Issue
Block a user