Skip to content

Commit

Permalink
chore: revert channels restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandernsilva authored Dec 6, 2024
1 parent b70e6ed commit b5f3f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/app/api/server/v1/channels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit b5f3f05

Please sign in to comment.