From e0bf428799df3f23f3fbedd940340de4816a8bef Mon Sep 17 00:00:00 2001 From: "Bernd (Hermes)" Date: Fri, 24 Jul 2026 14:33:00 +0200 Subject: [PATCH] =?UTF-8?q?fix(P1-1):=20build=5Fhelp=5Ftext=20=C3=BCbergib?= =?UTF-8?q?t=20presence=5Fenabled=20aus=20PresenceEngine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/adapter.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugin/adapter.py b/plugin/adapter.py index 7ef17ce..b39d3cf 100644 --- a/plugin/adapter.py +++ b/plugin/adapter.py @@ -5366,9 +5366,18 @@ class RocketChatAdapter(BasePlatformAdapter): await self._complete_onboarding(operator_room_id) # Hilfeseite anzeigen from archivar.inline_commands import build_help_text + # P1-1: presence_enabled aus PresenceEngine lesen (mit _has_presence-Guard) + presence_enabled = None + current_status = "online" + _has_presence = hasattr(self, '_presence_engine') and self._presence_engine is not None + if _has_presence: + presence_enabled = self._presence_engine.is_enabled() + current_status = getattr(self._presence_engine, '_last_sent_status', 'online') or 'online' help_text = build_help_text( self._inline_commands, room_map_summary=self._room_map_summary, + presence_enabled=presence_enabled, + current_status=current_status, ) await self._post_message_with_retry(operator_room_id, help_text) logger.info("[rocketchat] F8 UX: Review-Flow abgeschlossen — ACTIVE")