fix(P1-1): build_help_text übergibt presence_enabled aus PresenceEngine
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user