Return "M_UNKNOWN" as per the spec

This commit is contained in:
Till Faelligen 2022-02-09 13:53:58 +01:00
parent a7b2baf70e
commit fab1bac54a

View file

@ -460,7 +460,7 @@ func SendForget(
if membershipRes.IsInRoom {
return util.JSONResponse{
Code: http.StatusBadRequest,
JSON: jsonerror.Forbidden(fmt.Sprintf("User %s is in room %s", device.UserID, roomID)),
JSON: jsonerror.Unknown(fmt.Sprintf("User %s is in room %s", device.UserID, roomID)),
}
}