mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
client: switch to via in /join calls as per MSC4156
This commit is contained in:
parent
363fdfa3b2
commit
039f7335e4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue