Fix Archivar forward note bug: Use rest.post_message() instead of self.send() to ensure note appears in origin room

This commit is contained in:
Hermes Agent
2026-06-06 09:11:36 +02:00
parent e3f9ee31f4
commit 024a173c8d
3 changed files with 45 additions and 1 deletions
+1 -1
View File
@@ -585,7 +585,7 @@ class RocketChatAdapter(BasePlatformAdapter):
_CURRENT_ORIGIN_ROOM.set(decision.target_room)
try:
note_text = f"Ich antworte im {getattr(decision, 'matched_room_name', None) or 'Zielraum'}."
await self.send(room_id, note_text)
self.rest.post_message(room_id, note_text)
except Exception as e:
logger.debug("[rocketchat] Failed to send forward note: %s", e)