mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-28 14:08:44 +03:00
call /join/{roomIdOrAlias} instead of /rooms/{roomId}/join
The former endpoint doesn't work for joining over federation, the server_name parameter is ignored. Fixes #697 Signed-off-by: Marcus Hoffmann <bubu@bubu1.eu>
This commit is contained in:
parent
455448806d
commit
ce73007157
2 changed files with 5 additions and 3 deletions
|
@ -16,6 +16,7 @@ Bugfix 🐛:
|
||||||
- Fix crash when opening room creation screen from the room filtering screen
|
- Fix crash when opening room creation screen from the room filtering screen
|
||||||
- Fix avatar image disappearing (#777)
|
- Fix avatar image disappearing (#777)
|
||||||
- Fix read marker banner when permalink
|
- Fix read marker banner when permalink
|
||||||
|
- Fix joining upgraded rooms (#697)
|
||||||
|
|
||||||
Translations 🗣:
|
Translations 🗣:
|
||||||
-
|
-
|
||||||
|
|
|
@ -212,11 +212,12 @@ internal interface RoomAPI {
|
||||||
/**
|
/**
|
||||||
* Join the given room.
|
* Join the given room.
|
||||||
*
|
*
|
||||||
* @param roomId the room id
|
* @param roomIdOrAlias the room id or alias
|
||||||
|
* @param server_name the servers to attempt to join the room through
|
||||||
* @param params the request body
|
* @param params the request body
|
||||||
*/
|
*/
|
||||||
@POST(NetworkConstants.URI_API_PREFIX_PATH_R0 + "rooms/{roomId}/join")
|
@POST(NetworkConstants.URI_API_PREFIX_PATH_R0 + "join/{roomIdOrAlias}")
|
||||||
fun join(@Path("roomId") roomId: String,
|
fun join(@Path("roomIdOrAlias") roomIdOrAlias: String,
|
||||||
@Query("server_name") viaServers: List<String>,
|
@Query("server_name") viaServers: List<String>,
|
||||||
@Body params: Map<String, String?>): Call<Unit>
|
@Body params: Map<String, String?>): Call<Unit>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue