server
server copied to clipboard
Fix issue where players added or removed from friend or foe lists did not have games updated
Changes
- Add
send_game_list_to_player()that will send the game's they have access to a specific player rather than just the logged in user. - When social add or remove is called, it will send an updated game list to the target of the social add or remove.
Potential Issues
- Lots of social adds and removes has the potential for abuse of resources (DDOS). This would really be apparent if there are lots of games as well.
- The client might not accept the game list updates.
TODO
- Need to add unit/integration tests around this functionality.
Closes #1002