fix(geplante-nachrichten): distinguish unconfigured bot from unreachable Nextcloud in room picker

This commit is contained in:
Matthias Hochmeister
2026-04-17 09:47:31 +02:00
parent 510b44e48c
commit 5811ac201e
3 changed files with 8 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ interface RoomInfo {
interface RoomsResult {
configured: boolean;
data?: RoomInfo[];
error?: string;
}
// ── Helpers ──────────────────────────────────────────────────────────────────
@@ -327,7 +328,7 @@ async function getRooms(): Promise<RoomsResult> {
logger.error('scheduledMessages.getRooms failed', {
error: error instanceof Error ? error.message : String(error),
});
return { configured: false };
return { configured: true, data: [], error: 'Verbindung zu Nextcloud fehlgeschlagen' };
}
}