diff --git a/federationapi/routing/join.go b/federationapi/routing/join.go index 0fdaeb1fe..f0e1ae0d6 100644 --- a/federationapi/routing/join.go +++ b/federationapi/routing/join.go @@ -237,7 +237,7 @@ func SendJoin( JSON: jsonerror.BadJSON("missing content.membership key"), } } - if membership != "join" { + if membership != gomatrixserverlib.Join { return util.JSONResponse{ Code: http.StatusBadRequest, JSON: jsonerror.BadJSON("membership must be 'join'"),