Skip to content

Commit 9c782f5

Browse files
committed
Don't ack until view is built
1 parent f6fb28c commit 9c782f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,12 +544,12 @@ app.command("/sock-team", async ({ ack, body, client, logger }) => {
544544
// Listen for a slash command invocation
545545
app.command("/sock", async ({ ack, body, client, logger }) => {
546546
track("/sock", body.user_id);
547-
await ack();
548547

549548
app.logger.info(body);
550549

551550
try {
552551
const view = await buildSockView(body);
552+
await ack();
553553
await client.views.open({
554554
trigger_id: body.trigger_id,
555555
view,

0 commit comments

Comments
 (0)