Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

click on broadcast chat, go to game & move author was looking at #15029

Open
schlawg opened this issue Apr 4, 2024 · 0 comments
Open

click on broadcast chat, go to game & move author was looking at #15029

schlawg opened this issue Apr 4, 2024 · 0 comments
Labels
feature good first issue Narrow in scope (but not necessarily easy) no scala

Comments

@schlawg
Copy link
Collaborator

schlawg commented Apr 4, 2024

We extend ui/chat with a callback mechanism that calls relay code on message submit. The relay callback provides a round id, game id, and move number that the chat system then embeds within some sentinel characters before sending to lila-ws.

Meanwhile in relayView, we add a click handler to each chat message div that parses the sentinel embedded string and loads the right game & move.

@schlawg schlawg added feature good first issue Narrow in scope (but not necessarily easy) no scala labels Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature good first issue Narrow in scope (but not necessarily easy) no scala
Projects
Status: No status
Development

No branches or pull requests

1 participant