fix(P0): DM-Guard entfernt — confirm_move Copy-Schritt läuft jetzt auch bei DM-Origins
Rainer Analyse: adapter.py Z.2353 hatte 'if room_type != "d":' Guard der den Copy-Schritt bei DM-Origins übersprang. Entfernt. Telemetrie: confirm_move_dm_origin hinzugefügt.
This commit is contained in:
+3
-2
@@ -2349,8 +2349,7 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
)
|
||||
# ── FIX 1 (P0): ISSUE 4 — Nachricht in Zielraum kopieren ──
|
||||
# V8.1 hatte den Copy-Schritt fälschlich entfernt.
|
||||
# DM-Aufträge werden NIE geroutet (DM-Guard).
|
||||
if room_type != "d":
|
||||
# P0-Fix: DM-Guard entfernt — Copy läuft jetzt auch bei DM-Origins.
|
||||
try:
|
||||
prefix = f"*(Auftrag von @{username}, hierher kopiert)*\n"
|
||||
target_copy_id = await self._post_message_with_retry(
|
||||
@@ -2360,6 +2359,8 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
if target_copy_id:
|
||||
self._recent_auto_routes[room_id]["target_message_id"] = target_copy_id
|
||||
routing_counter.increment('confirm_move_copied')
|
||||
if room_type == "d":
|
||||
routing_counter.increment('confirm_move_dm_origin')
|
||||
logger.info(
|
||||
"[rocketchat] FIX 1: confirm_move copy → %s, "
|
||||
"target_msg_id=%s",
|
||||
|
||||
Reference in New Issue
Block a user