return helpful message instead of empty message if no backups

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-20 00:48:40 -04:00 committed by June
parent f9a60bf48b
commit 7af78cf708

View file

@ -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 => {