diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/Room.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/Room.kt index a27cdad551..86029e5419 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/Room.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/Room.kt @@ -78,6 +78,7 @@ interface Room : * Ref: https://matrix.org/docs/spec/client_server/latest#module-search * @param searchTerm the term to search * @param nextBatch the token that retrieved from the previous response. Should be provided to get the next batch of results + * @param orderByRecent if true, the most recent message events will return in the first places of the list * @param limit the maximum number of events to return. * @param beforeLimit how many events before the result are returned. * @param afterLimit how many events after the result are returned. diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/search/SearchService.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/search/SearchService.kt index b089a597e3..0abbdfd958 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/search/SearchService.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/search/SearchService.kt @@ -31,6 +31,7 @@ interface SearchService { * @param searchTerm the term to search * @param roomId the roomId to search term inside * @param nextBatch the token that retrieved from the previous response. Should be provided to get the next batch of results + * @param orderByRecent if true, the most recent message events will return in the first places of the list * @param limit the maximum number of events to return. * @param beforeLimit how many events before the result are returned. * @param afterLimit how many events after the result are returned.