diff --git a/apps/meteor/app/api/server/v1/channels.ts b/apps/meteor/app/api/server/v1/channels.ts index 1c80e01f2e84..91c7b63c2098 100644 --- a/apps/meteor/app/api/server/v1/channels.ts +++ b/apps/meteor/app/api/server/v1/channels.ts @@ -70,7 +70,7 @@ async function findChannelByIdOrName({ room = await Rooms.findOneByName(params.roomName || '', { projection }); } - if (!room || !['c', 'l', 'v'].includes(room.t)) { + if (!room || (room.t !== 'c' && room.t !== 'l')) { throw new Meteor.Error('error-room-not-found', 'The required "roomId" or "roomName" param provided does not match any channel'); }