update_profile_for_users

Function update_profile_for_users 

Source
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 profile field is updated.
  • Other users’ known_users entries are updated.