s/join/gmsl.json/

This commit is contained in:
Kegan Dougal 2021-07-19 12:35:04 +01:00
parent 0ce5aca465
commit bdaf94e7fe

View file

@ -237,7 +237,7 @@ func SendJoin(
JSON: jsonerror.BadJSON("missing content.membership key"), JSON: jsonerror.BadJSON("missing content.membership key"),
} }
} }
if membership != "join" { if membership != gomatrixserverlib.Join {
return util.JSONResponse{ return util.JSONResponse{
Code: http.StatusBadRequest, Code: http.StatusBadRequest,
JSON: jsonerror.BadJSON("membership must be 'join'"), JSON: jsonerror.BadJSON("membership must be 'join'"),