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

Fixing view votes crash. Fixes #1357 #1379

Merged
merged 1 commit into from
Feb 15, 2024
Merged

Fixing view votes crash. Fixes #1357 #1379

merged 1 commit into from
Feb 15, 2024

Conversation

dessalines
Copy link
Member

No description provided.

@dessalines dessalines requested a review from MV-GH as a code owner February 15, 2024 14:32
@@ -4,3 +4,4 @@ const val DEBOUNCE_DELAY = 1000L
const val MAX_POST_TITLE_LENGTH = 200
const val DEFAULT_FONT_SIZE = 16
const val INSTANCE_FONT_SIZE = 9
const val VIEW_VOTES_LIMIT = 40L
Copy link
Member Author

Choose a reason for hiding this comment

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

Upped this to 40, because sometimes if the votes are less than the screen height, it won't think you're scrolled down, and smartly append.

Copy link
Collaborator

Choose a reason for hiding this comment

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

i don't follow but you can always put like maxSize modifier.

getDeduplicateMerge(
oldRes.data.comment_likes,
newRes.data.comment_likes,
) { it.creator.id }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is that unique per commentLike post?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, user can only like an item once.

@dessalines dessalines merged commit 2351340 into main Feb 15, 2024
2 checks passed
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