diff --git a/roomserver/internal/perform/perform_join.go b/roomserver/internal/perform/perform_join.go index b9dd8005..7d00287b 100644 --- a/roomserver/internal/perform/perform_join.go +++ b/roomserver/internal/perform/perform_join.go @@ -245,7 +245,7 @@ func (r *Joiner) performJoinRoomByID( // builder content. if restricted, roomIDs, rerr := r.checkIfRestrictedJoin(ctx, req); rerr != nil { return "", "", &rsAPI.PerformError{ - Code: rsAPI.PerformErrorBadRequest, + Code: rsAPI.PerformErrorNotAllowed, Msg: rerr.Error(), } } else if restricted {