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

Display all parsed elements when parsing emojis in replies #4875

Merged
merged 7 commits into from
Oct 8, 2023

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Oct 7, 2023

Description

Previously, only the first parsed element was used. This also adds a helper for Boost's and std's apply_visitor/visit, which ensures all alternative types from the variants are handled.

Fixes #4874.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

src/messages/MessageElement.cpp Outdated Show resolved Hide resolved
src/messages/MessageElement.cpp Outdated Show resolved Hide resolved
src/messages/MessageElement.cpp Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
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.

works on 🅱️ indows, unlucky for the other ones that didn't build

@Nerixyz
Copy link
Contributor Author

Nerixyz commented Oct 7, 2023

Seems like we do need the deduction guidelines even though we're on C++ 20.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

src/messages/MessageElement.cpp Outdated Show resolved Hide resolved
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.

You can keep the Overloaded type, but since we have another big PR making changes here it'd be best if you just add the loop to fix the issue

@pajlada pajlada enabled auto-merge (squash) October 8, 2023 10:04
@pajlada pajlada merged commit fe4d612 into Chatterino:master Oct 8, 2023
15 checks passed
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

src/messages/MessageElement.cpp Show resolved Hide resolved
@Nerixyz Nerixyz deleted the fix/not-enugh-emojis branch October 8, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants