Skip to content

Commit

Permalink
Fix logic for determining public channel status in server join event
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev committed Jan 14, 2025
1 parent c3ebfce commit 5f362b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emits/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const emitServerJoined = (opts: ServerJoinOpts) => {
memberChannelPermissions = addBit(memberChannelPermissions, permissions?.permissions || 0);
}

const isPublicChannel = !hasBit(memberChannelPermissions, CHANNEL_PERMISSIONS.PUBLIC_CHANNEL.bit);
const isPublicChannel = hasBit(memberChannelPermissions, CHANNEL_PERMISSIONS.PUBLIC_CHANNEL.bit);
if (isPublicChannel) {
io.in(joinedMemberUserId).socketsJoin(channel.id);
continue;
Expand Down

0 comments on commit 5f362b5

Please sign in to comment.