From 0c3ea4f92333c3c8412e1d4a990366bb3ef6d9e3 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 12 Jun 2022 15:05:15 +0200 Subject: [PATCH] Use stable endpoint for alias management This increases compatibility with homeservers and allows them to remove Element Android specific workaround. fixes #4830 see https://github.com/ruma/ruma/pull/936 see https://github.com/matrix-org/synapse/issues/8334 see https://github.com/matrix-org/synapse/pull/9224 Signed-off-by: Nicolas Werner --- .../org/matrix/android/sdk/internal/session/room/RoomAPI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/RoomAPI.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/RoomAPI.kt index ac2880de69..9bcb7b8e4c 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/RoomAPI.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/RoomAPI.kt @@ -377,7 +377,7 @@ internal interface RoomAPI { * Get a list of aliases maintained by the local server for the given room. * Ref: https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-rooms-roomid-aliases */ - @GET(NetworkConstants.URI_API_PREFIX_PATH_UNSTABLE + "org.matrix.msc2432/rooms/{roomId}/aliases") + @GET(NetworkConstants.URI_API_PREFIX_PATH_R0 + "rooms/{roomId}/aliases") suspend fun getAliases(@Path("roomId") roomId: String): GetAliasesResponse /**