diff --git a/plugin/adapter.py b/plugin/adapter.py index 60faa1e..123b9c3 100644 --- a/plugin/adapter.py +++ b/plugin/adapter.py @@ -12,6 +12,7 @@ import asyncio import concurrent.futures import contextvars import datetime +import hashlib import json import logging import os @@ -7254,18 +7255,20 @@ class RocketChatAdapter(BasePlatformAdapter): buttons = _build_custom_buttons(button_labels, prefix=f"CLARIFY:{clarify_id}") # Add "Other" button with special handling + other_payload = f"CLARIFY:{clarify_id}:other" buttons.append({ "type": "button", - "text": "✏️ Other", - "msg": f"CLARIFY:{clarify_id}:other", + "text": "✏️ Andere (Freitext)", + "msg": other_payload, "msg_in_chat_window": True, "style": "default", + "action_id": hashlib.sha1(f"{other_payload}:0".encode()).hexdigest()[:12], }) # Create attachment with buttons attachments = [{ "color": "#1d74f5", - "title": "Please choose an option:", + "title": "Bitte wähle eine Option:", "actions": buttons, }]