fix(adapter): prevent move-request when target room equals origin room
This commit is contained in:
@@ -914,6 +914,11 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
with _question_counter_lock:
|
||||
_question_counter += 1
|
||||
# ── Ende Kontext-Weitergabe ──────────────────────────────
|
||||
# Wenn Zielraum = Ursprungsraum → stay_in_room, kein Move-Request
|
||||
if (hasattr(decision, 'target_room') and decision.target_room
|
||||
and decision.target_room == room_id):
|
||||
decision.stay_in_room = True
|
||||
decision.move_request_sent = False
|
||||
# Archivar v4 Move-Request: _pending_move_requests befüllen, damit
|
||||
# der Button-Response-Handler (lines 717-764) die Antwort korrekt
|
||||
# verarbeiten und _CURRENT_ORIGIN_ROOM auf den Zielraum setzen kann.
|
||||
|
||||
Reference in New Issue
Block a user