mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:44:05 +00:00
Expose a global search service from the client
Wrap the SDK's SearchService in a SearchServiceProxy that publishes typed message results and paginates on demand, expose it on the ClientProxy, and enable the search index store on the session. Also opens up the timeline item factory's message content builder so the proxy can reuse it.
This commit is contained in:
@@ -293,3 +293,11 @@ nonisolated extension SDKListener: RoomDirectorySearchEntriesListener where T ==
|
||||
onUpdateClosure(roomEntriesUpdate)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: SearchServiceProxy
|
||||
|
||||
nonisolated extension SDKListener: SearchServiceResultsListener where T == [SearchServiceResultsUpdate] {
|
||||
func onUpdate(updates: [SearchServiceResultsUpdate]) {
|
||||
onUpdateClosure(updates)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user