use anyhow::Result;
pub struct UserManager;
impl UserManager {
pub fn new() -> Self {
Self
}
pub async fn create_ghost_user(&self, localpart: &str) -> Result<String> {
Ok(format!("@{}:localhost", localpart))
}
pub async fn set_display_name(&self, user_id: &str, display_name: &str) -> Result<()> {
Ok(())
}
pub async fn set_avatar_url(&self, user_id: &str, avatar_url: &str) -> Result<()> {
Ok(())
}
}