Skip to content

Commit

Permalink
fix: set hyperbeam control permissions when user connects to hyperbeam
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkiir committed Feb 22, 2023
1 parent 1f1c4b1 commit 391fc25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot/classes/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 213,7 @@ export async function connectHbUser(ctx: AuthContext & { hbId: string }) {
const member = ctx.client.userData;
if (!member) return;
member.hbId = ctx.hbId;
await ctx.room.session?.instance?.setPermissions(ctx.hbId, { control_disabled: member.control === "disabled" });
}

export async function setControl(ctx: AuthContext & { targetId: string; control: Member["control"] }) {
Expand Down

0 comments on commit 391fc25

Please sign in to comment.