From fdc0c1aebbb8905c30127baff73f42e7749438d1 Mon Sep 17 00:00:00 2001 From: Saahil Date: Mon, 16 Dec 2024 22:51:12 -0500 Subject: [PATCH] fix:home --- src/commands/home.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/commands/home.ts b/src/commands/home.ts index 5f04115..38524e6 100644 --- a/src/commands/home.ts +++ b/src/commands/home.ts @@ -84,8 +84,9 @@ export default class AppHome implements Command { value: "send_mail", action_id: "send_mail", }, - - elements: app.dbs.anondm + + }, + ...app.dbs.anondm //@ts-ignore .get(usersInDb.find((e) => bcrypt.compareSync(event.user, e))) .messages.filter((e) => { @@ -108,9 +109,18 @@ export default class AppHome implements Command { type: "mrkdwn", text: `> :email_unread: New Message`, }, + accessory: { + type: "button", + text: { + type: "plain_text", + text: "Open", + emoji: true, + }, + value: "open_mail_v", + action_id: "open_mail_actionid", + } }; }), - }, ]; //@ts-ignore if (process.env.MY_USER_ID !== event.user)