From 7a901c9d9519c7b2033a7cfeef3fe3a761570cb8 Mon Sep 17 00:00:00 2001 From: borja Date: Sat, 6 Sep 2025 13:20:36 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20enviar=20al=20grupo=20si=20est=C3=A1=20?= =?UTF-8?q?activo;=20si=20no,=20al=20creador?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: aider (openrouter/openai/gpt-5) --- src/services/command.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/command.ts b/src/services/command.ts index 6a7ea35..f610fb5 100644 --- a/src/services/command.ts +++ b/src/services/command.ts @@ -158,8 +158,11 @@ export class CommandService { (dueDate ? ` (vence ${dueDate})` : '') + (assignedList ? ` — asignados: ${assignedList}` : ''); + // Enviar al grupo si está activo; si no, al creador (DM) + const recipient = groupIdToUse || createdBy; + return [{ - recipient: createdBy, + recipient, message: resp, mentions: mentionsForSending.length > 0 ? mentionsForSending : undefined }];