From bbea4e530e17983f7d2d378803b9bfe149674654 Mon Sep 17 00:00:00 2001 From: Saahil Date: Wed, 18 Dec 2024 21:36:08 -0500 Subject: [PATCH] fix: (testing) log? --- src/commands/anondm.ts | 2 ++ src/commands/home.ts | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/commands/anondm.ts b/src/commands/anondm.ts index cf155de..de8a6ea 100644 --- a/src/commands/anondm.ts +++ b/src/commands/anondm.ts @@ -195,6 +195,8 @@ export default class AnonDM implements Command { await ack(); console.debug(`#action`, par); console.log(action); + //@ts-ignore + const mail_hash_id = action.value as string; const user = par.body.user; // display user model // await app.client.chat.postMessage({ diff --git a/src/commands/home.ts b/src/commands/home.ts index 2fa12d8..e181152 100644 --- a/src/commands/home.ts +++ b/src/commands/home.ts @@ -100,7 +100,7 @@ export default class AppHome implements Command { return false; } }) - .map((e) => { + .map((e,i) => { // map to a slack element block return { type: "section", @@ -115,8 +115,8 @@ export default class AppHome implements Command { text: "Open", emoji: true, }, - value: "open_mail_v", - action_id: "open_mail_actionid", + value: i.toString(), + action_id: "open_mail_"+event.user, }, }; }),