Add support for MSC3787 and org.matrix.msc3787 room version (update to matrix-org/gomatrixserverlib#310)

This commit is contained in:
Neil Alexander 2022-05-26 15:08:17 +01:00
parent 45c4c00672
commit b541f3043f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
4 changed files with 5 additions and 5 deletions

View file

@ -772,7 +772,7 @@ func (r *Queryer) QueryRestrictedJoinAllowed(ctx context.Context, req *api.Query
}
// If the room version doesn't allow restricted joins then don't
// try to process any further.
allowRestrictedJoins, err := roomInfo.RoomVersion.AllowRestrictedJoinsInEventAuth()
allowRestrictedJoins, err := roomInfo.RoomVersion.MayAllowRestrictedJoinsInEventAuth()
if err != nil {
return fmt.Errorf("roomInfo.RoomVersion.AllowRestrictedJoinsInEventAuth: %w", err)
} else if !allowRestrictedJoins {