Send all room versions when joining, not just stable ones
This commit is contained in:
parent
7b7f48c589
commit
63cbc614ff
|
@ -307,11 +307,9 @@ func (r joinRoomReq) joinRoomUsingServer(roomID string, server gomatrixserverlib
|
|||
return nil, err
|
||||
}
|
||||
var supportedVersions []gomatrixserverlib.RoomVersion
|
||||
for version, descriptor := range response.AvailableRoomVersions {
|
||||
if descriptor == "stable" {
|
||||
for version := range response.AvailableRoomVersions {
|
||||
supportedVersions = append(supportedVersions, version)
|
||||
}
|
||||
}
|
||||
respMakeJoin, err := r.federation.MakeJoin(r.req.Context(), server, roomID, r.userID, supportedVersions)
|
||||
if err != nil {
|
||||
// TODO: Check if the user was not allowed to join the room.
|
||||
|
|
Loading…
Reference in a new issue