Skip to content

Commit

Permalink
added action id
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek1weiss committed Feb 24, 2025
1 parent 61cc2d2 commit 1fb4845
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions elementary/messages/formats/block_kit.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ def _format_dropdown_action_block(self, block: DropdownActionBlock) -> dict:
},
"value": block.initial_option.value,
}
if block.action_id:
formatted_block["action_id"] = block.action_id
return formatted_block

def _format_user_select_action_block(self, block: UserSelectActionBlock) -> dict:
Expand All @@ -179,6 +181,8 @@ def _format_user_select_action_block(self, block: UserSelectActionBlock) -> dict
resolved_user = self._resolve_mention(block.initial_user)
if resolved_user:
formatted_block["initial_user"] = resolved_user
if block.action_id:
formatted_block["action_id"] = block.action_id
return formatted_block

def _add_block(self, block: dict) -> None:
Expand Down

0 comments on commit 1fb4845

Please # to comment.