zkayser / pokerex_client

Elm client for PokerEx project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invoke `UpdateInvites` on Profile Page when a room is deleted

zkayser opened this issue · comments

When a player deletes a room, the invitees of the room should be notified on their Notifications channel of the deletion. This should also trigger the Profile page to refresh the player's invited_rooms list, if the player is on the Profile page.

Closing this now. I had to make this more general since an existing game (i.e., a game that was not just created) can have two lists of players depending on the state of the application: invited players and participating players. Both lists need to be updated, so I added a RefreshAllRooms message that gets called on the Profile module when on the Profile page. This clears both invited_rooms and ongoing_games for players.