feat: enviar al grupo si está activo; si no, al creador

Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
pull/1/head
borja 2 months ago
parent 3d73988c66
commit 7a901c9d95

@ -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
}];

Loading…
Cancel
Save