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

Allow taking private notes in kid mode #16761

Closed

Conversation

yafred
Copy link
Contributor

@yafred yafred commented Jan 11, 2025

An idea to fix #16715

In the implementation, the note view is grouped with the discussion view

So, a quick fix is not to block the kid in the scala controller but in the snapdom part (view.ts)

image

@yafred yafred marked this pull request as ready for review January 11, 2025 17:41
@@ -212,41 +212,40 @@ final class Round(
private[controllers] def getPlayerChat(game: GameModel, tour: Option[Tour])(using
ctx: Context
): Fu[Option[Chat.GameOrEvent]] =
ctx.kid.no.so:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this causes the game chat to always be loaded and sent to all clients, including the mobile apps, where kids will get to see the other player messages.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feared my approach would be too simple.
Let me think of something else.

@yafred yafred marked this pull request as draft January 12, 2025 11:15
@yafred yafred closed this Jan 12, 2025
@yafred yafred deleted the issue-16715-notes-in-kid-mode branch January 23, 2025 04:41
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.

private game/player notes in kidmode (regression)
2 participants