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:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user