Skip to content

Commit

Permalink
don't unfurl things and also hopefully fix notifs
Browse files Browse the repository at this point in the history
  • Loading branch information
itsthejoker committed Sep 23, 2022
1 parent c2edb69 commit ad27d31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bubbles/commands/periodic/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"),
Expand Down

0 comments on commit ad27d31

Please sign in to comment.