search
abstract suspend fun search( searchTerm: String, roomId: String, nextBatch: String?, orderByRecent: Boolean, limit: Int, beforeLimit: Int, afterLimit: Int, includeProfile: Boolean): SearchResult
Content copied to clipboard
Generic function to search a term in a room. Ref: https://matrix.org/docs/spec/client_server/latest#module-search
Parameters
search Term
the term to search
room Id
the roomId to search term inside
next Batch
the token that retrieved from the previous response. Should be provided to get the next batch of results
order By Recent
if true, the most recent message events will return in the first places of the list
limit
the maximum number of events to return.
before Limit
how many events before the result are returned.
after Limit
how many events after the result are returned.
include Profile
requests that the server returns the historic profile information for the users that sent the events that were returned.