File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,16 @@ func JoinRoomByIDOrAlias(
3636 Content : map [string ]interface {}{},
3737 }
3838
39- // Check to see if any ?server_name= query parameters were
40- // given in the request.
41- if serverNames , ok := req .URL .Query ()["server_name" ]; ok {
39+ // Check to see if any ?via= or ?server_name= query parameters
40+ // were given in the request.
41+ if serverNames , ok := req .URL .Query ()["via" ]; ok {
42+ for _ , serverName := range serverNames {
43+ joinReq .ServerNames = append (
44+ joinReq .ServerNames ,
45+ spec .ServerName (serverName ),
46+ )
47+ }
48+ } else if serverNames , ok := req .URL .Query ()["server_name" ]; ok {
4249 for _ , serverName := range serverNames {
4350 joinReq .ServerNames = append (
4451 joinReq .ServerNames ,
You can’t perform that action at this time.
0 commit comments