diff --git a/plugin/adapter.py b/plugin/adapter.py index afba79f..bea9caf 100644 --- a/plugin/adapter.py +++ b/plugin/adapter.py @@ -638,8 +638,16 @@ class RocketChatAdapter(BasePlatformAdapter): # Handle CLARIFY button responses: CLARIFY:: or CLARIFY::other if is_clarify_response and text.startswith("CLARIFY:"): try: - parts = text.split(":", 2) - if len(parts) == 3: + if "::" in text: + # Neues Format: CLARIFY::: (via _build_custom_buttons) + prefix_part, choice = text.split("::", 1) + clarify_id = prefix_part.split(":", 1)[1] + else: + # Altes Format: CLARIFY::other (Other-Button) + parts = text.split(":", 2) + if len(parts) != 3: + logger.debug("[rocketchat] Unrecognized CLARIFY format: %s", text) + return _, clarify_id, choice = parts if choice == "other": # For "Other" button, enable text capture mode