Skip to content

Commit

Permalink
Use stable endpoint for alias management
Browse files Browse the repository at this point in the history
This increases compatibility with homeservers and allows them to remove
Element Android specific workaround.

fixes element-hq#4830
see ruma/ruma#936
see matrix-org/synapse#8334
see matrix-org/synapse#9224

Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de>
  • Loading branch information
deepbluev7 committed Jun 12, 2022
1 parent 88d2853 commit 0c3ea4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down

0 comments on commit 0c3ea4f

Please sign in to comment.