-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Mobile] add bookmarked
boolean to game json
#15773
Comments
Wouldn't that mean that the API would return different results based on the logged user? |
Yes, nothing wrong with that. |
mobile round socket JSON: 77ba6b0 |
are we sure we want to display the bookmark status in game lists? |
Not directly in the list, but I was thinking at the context menu (long press on an item), or a swipe to discover actions as we often find in mobile apps. (Un)Bookmark by swiping the game would make sense imo. |
Ah, then it's wasteful for the server to check for bookmarks for all games, all the time, when we only need to know after a user action? |
I think we can do that yes. Especially for the context menu. Ideally for the swipe action we should know in advance but we're not obliged to implement swipe. |
then make sure to set the |
Needed for lichess-org/mobile#594
Mobile PR: lichess-org/mobile#868
I see 3 places where we need this:
In the json returned by:
/api/games/user/<username>
/game/export/<gameId>
In mobile round socket:
https://github.com/lichess-org/lila/blob/master/modules/round/src/main/RoundMobile.scala
The text was updated successfully, but these errors were encountered: