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 'First Message' scrollbar highlights not being disabled #3325

Merged

Conversation

xel86
Copy link
Contributor

@xel86 xel86 commented Oct 30, 2021

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

Added const method isFirstMessageHighlight() to check if a highlight is a first message highlight similar to isRedeemedHighlight(). Considered this new method and whether or not first message highlights were enabled in the settings while painting scrollbar highlights.

Bug can be reproduced by looking at a chat with first message highlights, going into the settings and disabling first message highlights and then observing that the scrollbar still shows the highlights for the first messages.

Closes #3317

Copy link
Collaborator

@Felanbird Felanbird left a comment

Choose a reason for hiding this comment

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

Functionality works as intended. 👍

Copy link
Member

@pajlada pajlada left a comment

Choose a reason for hiding this comment

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

Implementation looks good, but the check whether or not to render the highlight makes me sick (not your fault).

I've gone ahead and made this PR to flatten the scroll highlight iteration, which lets us early-out before the rendering that's done last.

Once #3326 has been merged into the main branch, I'll update this PR branch for use with this new flattened method.

@pajlada pajlada merged commit e24dffa into Chatterino:master Oct 30, 2021
@pajlada
Copy link
Member

pajlada commented Oct 30, 2021

Thanks for your contribution @1xelerate! As a first-time contributor, you can now add yourself to the contributors list that's shown inside the application.

To do so, open a new PR where you modify the resources/contributors.txt file and add yourself to the list. Make sure to read the comments at a top for instructions.

zneix added a commit to SevenTV/chatterino7 that referenced this pull request Oct 30, 2021
Now we're on commit b4b7450; Changes from upstream we've pulled:

- Minor: Clean up chat messages of special line characters prior to sending. (Chatterino#3312)
- Bugfix: Fixed `First Message` scrollbar highlights not being disabled. (Chatterino#3325)
- Dev: Add GitHub action to test builds without precompiled headers enabled. (Chatterino#3327)
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.

First Messages are still highlighted in the scroll bar even if disabled
3 participants