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: count only message items for show-more #1013

Merged
merged 1 commit into from
Apr 6, 2017
Merged

fix: count only message items for show-more #1013

merged 1 commit into from
Apr 6, 2017

Conversation

awalgarg
Copy link
Contributor

@awalgarg awalgarg commented Apr 5, 2017

the messages div contains a date-marker div and an unread-marker div. this causes the count variable to be 2 more than the expected value, which makes the show-more button skip two messages when loading history. this change filters the counted elements to fix this issue.

the `messages` div contains a `date-marker` div and an `unread-marker` div. this causes the `count` variable to be 2 more than the expected value, which makes the show-more button skip two messages when loading history. this change filters the counted elements to fix this issue.
@astorije astorije added the Type: Bug Issues that report and PRs that solve any defects that cause unexpected behaviors. label Apr 5, 2017
@astorije astorije added this to the 2.3.0 milestone Apr 5, 2017
Copy link
Member

@astorije astorije left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@xPaw xPaw merged commit bb24bc6 into thelounge:master Apr 6, 2017
matburnham pushed a commit to matburnham/lounge that referenced this pull request Sep 6, 2017
fix: count only message items for show-more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issues that report and PRs that solve any defects that cause unexpected behaviors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants