Add a clear all button to recent searches

Lets users wipe their whole search history at once from the recent
searches section header, as per the designs.
This commit is contained in:
Stefan Ceriu
2026-09-29 14:56:45 +03:00
parent 50b38555b6
commit a78e4f0c2a
8 changed files with 34 additions and 10 deletions
@@ -149,6 +149,8 @@ class SearchScreenViewModel: SearchScreenViewModelType, SearchScreenViewModelPro
actionsSubject.send(.presentRoom(roomID: roomID, eventID: eventID))
case .removeBreadcrumb(let breadcrumb):
removeBreadcrumb(breadcrumb)
case .clearBreadcrumbs:
userSettings.searchBreadcrumbs = []
case .reachedTop:
if state.bindings.searchMode == .rooms {
updateVisibleRange(edge: .top)