Skip to content

Conversation

@julien4215
Copy link
Collaborator

No description provided.

),
headers: {'Accept': 'application/x-ndjson'},
mapper: (json) => LightArchivedGame.fromServerJson(json),
mapper: (json) => LightArchivedGame.fromServerJson(json, isBookmarked: true),
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't get this. The server should already return the right value, and we should not have to override it client side.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The server only sends bookmark games so it doesn't add the field bookmarked: true in the json as it would just wastes bandwidth.

@veloce veloce merged commit 0d55602 into lichess-org:main Feb 10, 2025
1 check passed
@julien4215 julien4215 deleted the bookmark-context-menu branch February 10, 2025 15:42
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