From 4683dc3f21bc0048f2a8d8f94d7adf9a078f1efc Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Mon, 28 Sep 2020 19:55:56 +0300 Subject: [PATCH] Documentation added to orderByRecent parameter of the search request. --- .../main/java/org/matrix/android/sdk/api/session/room/Room.kt | 1 + .../org/matrix/android/sdk/api/session/search/SearchService.kt | 1 + 2 files changed, 2 insertions(+) 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.