Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek1weiss committed Feb 20, 2025
1 parent f9c9d36 commit 61cc2d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elementary/messages/formats/block_kit.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ def build(self, message: MessageBody) -> FormattedBlockKitMessage:
color_code = COLOR_MAP.get(message.color) if message.color else None
blocks, attachment_blocks = self._get_final_blocks(message.color)
if message.id and blocks:
# The only place in a slack message where we can set a custom id is in blocks, so we set the id of the first block
blocks[0]["block_id"] = message.id
built_message = FormattedBlockKitMessage(
blocks=blocks,
Expand Down

0 comments on commit 61cc2d2

Please # to comment.