aboutsummaryrefslogtreecommitdiff
path: root/federationapi
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-05-26 15:08:17 +0100
committerNeil Alexander <neilalexander@users.noreply.github.com>2022-05-26 15:08:17 +0100
commitb541f3043f0ad8924547c540d9235d017d1792f6 (patch)
treeb55bddffc56871ddf9f2f6854a5cbeb1140f7933 /federationapi
parent45c4c006721756595b12b41638a86ec803ee9fbd (diff)
Add support for MSC3787 and `org.matrix.msc3787` room version (update to matrix-org/gomatrixserverlib#310)
Diffstat (limited to 'federationapi')
-rw-r--r--federationapi/routing/join.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/federationapi/routing/join.go b/federationapi/routing/join.go
index abf9c094..8d779c3d 100644
--- a/federationapi/routing/join.go
+++ b/federationapi/routing/join.go
@@ -425,7 +425,7 @@ func checkRestrictedJoin(
roomVersion gomatrixserverlib.RoomVersion,
roomID, userID string,
) (*util.JSONResponse, string, error) {
- if allowRestricted, err := roomVersion.AllowRestrictedJoinsInEventAuth(); err != nil {
+ if allowRestricted, err := roomVersion.MayAllowRestrictedJoinsInEventAuth(); err != nil {
return nil, "", err
} else if !allowRestricted {
return nil, "", nil