Skip to content

Commit

Permalink
fix room id for invites (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Feb 1, 2024
1 parent 74a7270 commit e2f42f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/InviteCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export class InviteCommand implements ICommand {
await this.ensureInvited(targetRoomId, resolved);
}

public async run(roomId: string, event: any, args: string[]) {
await this.client.replyNotice(roomId, event, "Sending invites to participants. This might take a while.");
public async run(managementRoomId: string, event: any, args: string[]) {
await this.client.replyNotice(managementRoomId, event, "Sending invites to participants. This might take a while.");

// This is called invite but it's really membership sync in a way. We're iterating over
// every possible room the bot knows about and making sure that we have the right people
Expand Down Expand Up @@ -91,10 +91,10 @@ export class InviteCommand implements ICommand {
}
await this.createInvites(people, this.config.conference.supportRooms.specialInterest);
} else {
await runRoleCommand((_client,_room,people) => this.ensureInvited(roomId, people), this.conference, this.client, roomId, event, args);
await runRoleCommand((_client, room, people) => this.ensureInvited(room, people), this.conference, this.client, managementRoomId, event, args);
}

await this.client.sendNotice(roomId, "Invites sent!");
await this.client.sendNotice(managementRoomId, "Invites sent!");
}

public async ensureInvited(roomId: string, people: ResolvedPersonIdentifier[]) {
Expand Down

0 comments on commit e2f42f5

Please sign in to comment.