diff --git a/clientapi/routing/joinroom.go b/clientapi/routing/joinroom.go index 8c77f749d..74b6a93ce 100644 --- a/clientapi/routing/joinroom.go +++ b/clientapi/routing/joinroom.go @@ -81,7 +81,7 @@ func JoinRoomByIDOrAlias( defer close(done) rsAPI.PerformJoin(req.Context(), &joinReq, &joinRes) if joinRes.Error != nil { - joinRes.Error.Code = roomserverAPI.PerformErrorNotAllowed + joinRes.Error.RemoteCode = http.StatusForbidden done <- joinRes.Error.JSONResponse() } else { done <- util.JSONResponse{