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