Skip to content

Commit 00ea6ef

Browse files
feat: Update citation prompting and update action
1 parent caa1d48 commit 00ea6ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/slackBotFunction/app/slack/slack_events.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,9 @@ def open_citation(channel: str, timestamp: str, message: Any, params: Dict[str,
645645
for element in block.get("elements", []):
646646
if element.get("type") == "button":
647647
action_id = element.get("action_id")
648-
active_id = action_id if element.get("style") else None
648+
649+
if element.get("style"):
650+
active_id = action_id
649651

650652
if action_id == current_id and active_id != current_id:
651653
logger.info(

0 commit comments

Comments
 (0)