Skip to content

Commit

Permalink
feat: disable control for by default in password protected rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkiir committed Feb 22, 2023
1 parent 3f2827e commit 28fee57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bot/classes/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 146,9 @@ export async function joinSession(ctx: AuthContext) {
}
const member = ctx.client.userData;
if (!member) return;
member.control = ctx.room.state.isPasswordProtected ? "disabled" : member.control;
ctx.room.state.members.set(member.id, member);

if (ctx.client.auth.guest) return;
const user = await db.user.findFirst({ where: { id: member.id } });
if (!user) return;
Expand Down

0 comments on commit 28fee57

Please sign in to comment.