From 54de0d1b69ab58850616dbfe59332f741f8f7a65 Mon Sep 17 00:00:00 2001 From: "Bernd (Hermes)" Date: Mon, 22 Jun 2026 11:59:11 +0200 Subject: [PATCH] fix(adapter): prevent move-request when target room equals origin room --- plugin/adapter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/adapter.py b/plugin/adapter.py index adb36ad..0eea590 100644 --- a/plugin/adapter.py +++ b/plugin/adapter.py @@ -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.