Skip to content

Conversation

@MasterBel2
Copy link
Contributor

Provides a fix for #495

Interface had been forwarding the command to Lobby but Lobby wasn’t handling the list. Now:

  • updates self.friends, self.friendCount, and self.isFriend[userName] properties
  • updates userInfo.isFriend for the associated user object if they are online.
  • Hands the friends list to listeners (before, this was the only thing it did, resulting in an un-updated list being handed off)

Also, for completeness, Interface:FriendList() and :FriendRequestList() now forward the calls to self:super(). Although this has no meaningful effect, a precedent for this is set with other calls, so this should prevent certain errors should Lobby ever care to use these calls.

`Interface` had been forwarding the command to `Lobby` but `Lobby` wasn’t handling the list. Now:
- updates `self.friends`, `self.friendCount`, and `self.isFriend[userName]` properties
- updates `userInfo.isFriend` for the associated user object if they are online.
- Hands the friends list to listeners (before, this was the only thing it did, resulting in an un-updated list being handed off)

Also, for completeness, `Interface:FriendList()` and `:FriendRequestList()` now forward the calls to `self:super()`. Although this has no meaningful effect, a precedent for this is set with other calls, so this should prevent certain errors should `Lobby` ever care to use these calls.
@gajop gajop merged commit 924a084 into Spring-Chobby:master Jul 11, 2020
@gajop
Copy link
Member

gajop commented Jul 11, 2020

Seems good :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants