pub async fn update_profile_for_users(
state: &AppState,
user_id: &str,
) -> Result<(), AppError>Expand description
Update state for a user and all users who share documents with them.
Called after a profile update so that:
- The user’s own
profilefield is updated. - Other users’
known_usersentries are updated.