async fn check_appservice_namespace( services: State, body: &Ruma<Request>, user_id: &UserId, emergency_mode_enabled: bool, ) -> Result