From ad27d31376ac85d6e57947bf07cf2aae93a6a5ca Mon Sep 17 00:00:00 2001 From: Joe Kaufeld Date: Fri, 23 Sep 2022 12:43:07 -0400 Subject: [PATCH] don't unfurl things and also hopefully fix notifs --- bubbles/commands/periodic/modmail.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bubbles/commands/periodic/modmail.py b/bubbles/commands/periodic/modmail.py index 0a19814..480ece7 100644 --- a/bubbles/commands/periodic/modmail.py +++ b/bubbles/commands/periodic/modmail.py @@ -76,6 +76,13 @@ def process_modmail(message_state: str) -> None: app.client.chat_postMessage( channel=rooms_list["mod_messages"], as_user=True, + text=( + f":modmail: *{sender}* :arrow_right: *{recipient}*\n" + f":star2: *{convo.subject}*\n" + f"{latest_message.body_markdown}" + ), + unfurl_links=False, + unfurl_media=False, blocks=[ blocks.SectionBlock(text=f"*{sender}* :arrow_right: *{recipient}*"), blocks.SectionBlock(text=f"*Subject*: {convo.subject}{extra}"),