From e2f42f57c2ad520df3dd5d2fa1eeca2cc3b45329 Mon Sep 17 00:00:00 2001 From: Shay Date: Thu, 1 Feb 2024 10:09:05 -0800 Subject: [PATCH] fix room id for invites (#217) --- src/commands/InviteCommand.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/InviteCommand.ts b/src/commands/InviteCommand.ts index 3a297ed..16bb623 100644 --- a/src/commands/InviteCommand.ts +++ b/src/commands/InviteCommand.ts @@ -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 @@ -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[]) {