Send initial presence for offline friends.

This commit is contained in:
RipleyTom 2024-02-28 05:21:51 +01:00 committed by Megamouse
parent 2cbd983b4c
commit 573734fab8
2 changed files with 19 additions and 16 deletions

View file

@ -1261,7 +1261,8 @@ namespace rpcn
std::map<std::string, friend_online_data> rpcn_client::get_presence_states()
{
std::lock_guard lock(mutex_friends);
std::scoped_lock lock(mutex_friends, mutex_presence_updates);
presence_updates.clear();
return friend_infos.friends;
}