fix: V8.3.4.1 — B3 Substring-Fix + Echte Integration-Tests

This commit is contained in:
Bernd (Hermes)
2026-07-15 18:42:18 +02:00
parent 7719575497
commit 334ea7ce3b
2 changed files with 550 additions and 307 deletions
+5 -1
View File
@@ -1835,7 +1835,11 @@ class RocketChatAdapter(BasePlatformAdapter):
if room_map is not None:
for rid, entry in room_map.rooms.items():
entry_name = entry.name.lstrip('#').lower().replace(' ', '-')
if switch_room_name in entry_name or entry_name in switch_room_name:
# V8.3.4.1 F1: Exakter Match statt Substring-Injection.
# 'Plugin' darf NICHT 'Rocketchat-Plugin' matchen.
if switch_room_name == entry_name or any(
kw.lower() == switch_room_name for kw in entry.keywords_100
):
target_room_id = rid
target_room_display = entry.name
break