client: switch to via in /join calls as per MSC4156
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run

This commit is contained in:
Tulir Asokan 2024-11-19 01:34:35 +02:00
commit 039f7335e4

View file

@ -942,7 +942,7 @@ func (cli *Client) JoinRoom(ctx context.Context, roomIDorAlias, serverName strin
var urlPath string
if serverName != "" {
urlPath = cli.BuildURLWithQuery(ClientURLPath{"v3", "join", roomIDorAlias}, map[string]string{
"server_name": serverName,
"via": serverName,
})
} else {
urlPath = cli.BuildClientURL("v3", "join", roomIDorAlias)