Skip to main content

merge_friends

Function merge_friends 

Source
fn merge_friends(
    users: Vec<UserResponse>,
    details: &BTreeMap<u64, PresenceDetail>,
    avatars: &BTreeMap<u64, String>,
    game_names: &BTreeMap<u64, String>,
) -> Vec<OnlineFriend>
Expand description

Combines profiles with presence, dropping friends who have since gone offline. Friends in game come first, then the rest, each sorted by name.