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

Fix jumping to begining of day on group message #358

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

vctt94
Copy link
Contributor

@vctt94 vctt94 commented Oct 2, 2023

Closes #356

Issue:

The existing implementation utilizes chat.dayGCMsgs.length to determine the scroll position, which represents the count of grouped days, not the individual messages. This causes the scroll to navigate to the initial message of the last grouped day, leading to incorrect scroll behavior.

Solution:

This PR addresses the scrolling inconsistency by flattening the grouped messages and incorporating an additional count for day change messages. This ensures that the scroll position accurately reflects the individual message count, preserving the day change messages.

Copy link
Member

@alexlyp alexlyp left a comment

Choose a reason for hiding this comment

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

tACK

@alexlyp alexlyp merged commit 94d18ed into companyzero:master Oct 12, 2023
5 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.

bruig: Jumps to beginning of day's messages
2 participants