Subterfuge-Revived / Remake-Core

Core repository that holds all game logic for both front end rendering and back end validation.
Creative Commons Zero v1.0 Universal
39 stars 24 forks source link

Server - Track Seen Messages #99

Open QuinnBast opened 1 year ago

QuinnBast commented 1 year ago

Enhancement Description

In order to make notification bubbles appear in the app, we will need to have some way of knowing what messages a player has seen. The server should implement some new data field to track this and the server should track this when the player accesses a GET endpoint from the server.

NOTE: The 'seen' should only update after results are returned from the GET endpoints.

Solution

Once a player has seen (called the GET endpoint) a chat message or game event, the player should be added to the seen list (or the ID/timestamp).

Maybe each game lobby should have a "New content for Player Ids" field that is a list of user IDs. Then when the players login they will be told of new content that they have not seen (ie. messages / events) before they go into the game. Then once the user loads that content their ID is erased from the list.

This is low priority