fix(P0-4): Review leer-Liste → Zurück-Button garantiert

This commit is contained in:
Bernd (Hermes)
2026-07-24 14:29:53 +02:00
parent 07ba653b65
commit 9e214a423c
2 changed files with 15 additions and 1 deletions
+12 -1
View File
@@ -672,10 +672,21 @@ def render_review_room_add_new(
(text, attachments) Tuple
"""
if not available_rooms:
# P0-4: Auch bei leerer Liste einen Zurück-Button rendern,
# damit der User nicht in einer UX-Sackgasse steckt.
special_buttons: List[Tuple[str, str, str]] = [
("↩️ Zurück", REVIEW_ROOM_BACK, "default"),
]
attachments = build_button_attachments(
[],
special_buttons,
color="#1d74f5",
title="Neuen Raum hinzufügen",
)
return (
"📋 **Neuer Raum** — Keine weiteren Räume verfügbar.\n"
"Alle Rocket.Chat-Räume sind bereits in der Room-Map.",
[],
attachments,
)
lines = [