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, }, }; }),