mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
fix:home
This commit is contained in:
parent
0f82afe9ec
commit
fdc0c1aebb
1 changed files with 13 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue