fix: Don't panic when running startup admin commands

This commit is contained in:
Ginger
2026-02-15 17:28:55 -05:00
parent 7b21c3fd9f
commit 4e1dac32a5
4 changed files with 14 additions and 11 deletions
+4 -2
View File
@@ -5,7 +5,7 @@ use std::{
use askama::Template;
use async_trait::async_trait;
use conduwuit::{Result, utils::ReadyExt};
use conduwuit::{Result, info, utils::ReadyExt};
use futures::StreamExt;
use ruma::{UserId, events::room::message::RoomMessageEventContent};
@@ -146,6 +146,8 @@ impl Service {
.send_loud_message(RoomMessageEventContent::text_markdown(welcome_message))
.await?;
info!("{user} has been invited to the admin room as the first user.");
Ok(true)
}
@@ -162,7 +164,7 @@ impl Service {
}
}
pub(crate) fn print_first_run_banner(&self) {
pub fn print_first_run_banner(&self) {
use yansi::Paint;
// This function is specially called by the core after all other
// services have started. It runs last to ensure that the banner it