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:
Bernd (Hermes)
2026-07-25 17:00:28 +02:00
parent 447fb31f30
commit 0d6837e341
+3 -2
View File
@@ -2349,8 +2349,7 @@ class RocketChatAdapter(BasePlatformAdapter):
) )
# ── FIX 1 (P0): ISSUE 4 — Nachricht in Zielraum kopieren ── # ── FIX 1 (P0): ISSUE 4 — Nachricht in Zielraum kopieren ──
# V8.1 hatte den Copy-Schritt fälschlich entfernt. # V8.1 hatte den Copy-Schritt fälschlich entfernt.
# DM-Aufträge werden NIE geroutet (DM-Guard). # P0-Fix: DM-Guard entfernt — Copy läuft jetzt auch bei DM-Origins.
if room_type != "d":
try: try:
prefix = f"*(Auftrag von @{username}, hierher kopiert)*\n" prefix = f"*(Auftrag von @{username}, hierher kopiert)*\n"
target_copy_id = await self._post_message_with_retry( target_copy_id = await self._post_message_with_retry(
@@ -2360,6 +2359,8 @@ class RocketChatAdapter(BasePlatformAdapter):
if target_copy_id: if target_copy_id:
self._recent_auto_routes[room_id]["target_message_id"] = target_copy_id self._recent_auto_routes[room_id]["target_message_id"] = target_copy_id
routing_counter.increment('confirm_move_copied') routing_counter.increment('confirm_move_copied')
if room_type == "d":
routing_counter.increment('confirm_move_dm_origin')
logger.info( logger.info(
"[rocketchat] FIX 1: confirm_move copy → %s, " "[rocketchat] FIX 1: confirm_move copy → %s, "
"target_msg_id=%s", "target_msg_id=%s",