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

Fixed right-clicking mentions no longer working. #4751

Merged
merged 3 commits into from
Aug 5, 2023

Conversation

Mm2PL
Copy link
Collaborator

@Mm2PL Mm2PL commented Aug 4, 2023

Description

Closes #4750.

Implementation caveat: this uses the mention text to check if its the person who sent the message. So if I send a message and I mention myself in it, anyone can reply to it with the mention. Seemed like a good tradeoff rather than updating all code using MessageElementFlags to see which Username is sender's name and which is mention.

Mm2PL: @Mm2PL <-- this mention can be shift rightclicked to reply to this message

@Felanbird Felanbird added this to the 2.4.5 milestone Aug 4, 2023
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.

Seems to work within my imagination of how it should, previous functionality is restored and self mentions can be used for replies.

@Mm2PL Mm2PL changed the title Fix rightclicking mentions not working Fixed right-clicking mentions no longer working. Aug 4, 2023
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/widgets/helper/ChannelView.cpp Show resolved Hide resolved
@@ -19,6 +19,7 @@
- Minor: Stream status requests are now batched. (#4713)
- Minor: Added `/c2-theme-autoreload` command to automatically reload a custom theme. This is useful for when you're developing your own theme. (#4718)
- Minor: Show channel point redemptions without messages in usercard. (#4557)
- Minor: Allow for customizing the behavior of `Right Click`ing of usernames. (#4622, #4751)
Copy link
Collaborator

Choose a reason for hiding this comment

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

note: this changelog was accidentally dropped in 2.4.4 but was not apart of said version, and since this PR is a followup it seems correct to move it back in this PR

@pajlada pajlada added this pull request to the merge queue Aug 5, 2023
Merged via the queue into master with commit b98be3b Aug 5, 2023
15 of 16 checks passed
@pajlada pajlada deleted the bugfix/fixrightclicking branch August 5, 2023 12:17
Nerixyz pushed a commit to Nerixyz/chatterino2 that referenced this pull request Aug 12, 2023
* fix up rightclicking mentions

* changelog

* Merge changelog entries other PR was merged after 2.4.4
Nerixyz pushed a commit to Nerixyz/chatterino2 that referenced this pull request Aug 19, 2023
* fix up rightclicking mentions

* changelog

* Merge changelog entries other PR was merged after 2.4.4
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.

Right clicking username inside a message does not copy it into the input field anymore
3 participants