From d4438c82e3753c9b29b6269ad406d263b3fcef4c Mon Sep 17 00:00:00 2001 From: Danshil Kokil Mungur Date: Sat, 15 Jan 2022 04:33:27 +0400 Subject: [PATCH] fix(notif): show event in pop up notification for slack (#2413) * fix(notif): show event in pop up notification for slack fix #2408 * fix(notifs): suggested changes * fix(notif): add fallback text to slack embed builder Co-authored-by: Ryan Cohen --- server/lib/notifications/agents/slack.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/lib/notifications/agents/slack.ts b/server/lib/notifications/agents/slack.ts index eede9f094..ca10c269c 100644 --- a/server/lib/notifications/agents/slack.ts +++ b/server/lib/notifications/agents/slack.ts @@ -39,6 +39,7 @@ interface EmbedBlock { } interface SlackBlockEmbed { + text: string; blocks: EmbedBlock[]; } @@ -201,6 +202,7 @@ class SlackAgent } return { + text: payload.event ?? payload.subject, blocks, }; }