From 7af78cf708e8ae783751d016932617932ea89216 Mon Sep 17 00:00:00 2001 From: strawberry Date: Wed, 20 Mar 2024 00:48:40 -0400 Subject: [PATCH] return helpful message instead of empty message if no backups Signed-off-by: strawberry --- src/service/admin/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/service/admin/mod.rs b/src/service/admin/mod.rs index 2250ddb6..8b52ac6b 100644 --- a/src/service/admin/mod.rs +++ b/src/service/admin/mod.rs @@ -1875,6 +1875,10 @@ impl Service { ServerCommand::ListBackups => { let result = services().globals.db.backup_list()?; + if result.is_empty() { + return Ok(RoomMessageEventContent::text_plain("No backups found.")); + } + RoomMessageEventContent::text_plain(result) }, ServerCommand::BackupDatabase => {