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

Highlights loaded from message history will now correctly appear in the /mentions channel #4752

Merged
merged 8 commits into from
Aug 5, 2023

Conversation

pajlada
Copy link
Member

@pajlada pajlada commented Aug 5, 2023

Description

Originally #4475

@pajlada
Copy link
Member Author

pajlada commented Aug 5, 2023

image

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

@@ -1121,6 +1121,21 @@ void TwitchChannel::loadRecentMessages()

tc->addMessagesAtStart(messages);
tc->loadingRecentMessages_.clear();

std::vector<MessagePtr> msgs;
for (MessagePtr msg : messages)
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: variable 'msg' of type 'chatterino::MessagePtr' (aka 'shared_ptr') can be declared 'const' [misc-const-correctness]

Suggested change
for (MessagePtr msg : messages)
for (MessagePtr const msg : messages)

@@ -1121,6 +1121,21 @@

tc->addMessagesAtStart(messages);
tc->loadingRecentMessages_.clear();

std::vector<MessagePtr> msgs;
for (MessagePtr msg : messages)
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: loop variable is copied but only used as const reference; consider making it a const reference [performance-for-range-copy]

Suggested change
for (MessagePtr msg : messages)
for (const MessagePtr& msg : messages)

@pajlada pajlada added this pull request to the merge queue Aug 5, 2023
Merged via the queue into master with commit 1aedd4d Aug 5, 2023
15 of 16 checks passed
@pajlada pajlada deleted the c2/feat/recent-messages-mentions-tab branch August 5, 2023 15:02
Nerixyz pushed a commit to Nerixyz/chatterino2 that referenced this pull request Aug 12, 2023
…he /mentions channel (Chatterino#4752)

* added messages in mentions tab if correct predicate is met

* Update CHANGELOG.md

* Apply Felanbird's fix

Co-authored-by: Felanbird <[email protected]>

---------

Co-authored-by: 2547techno <[email protected]>
Co-authored-by: 2547techno <[email protected]>
Co-authored-by: Mm2PL <[email protected]>
Co-authored-by: Felanbird <[email protected]>
Nerixyz pushed a commit to Nerixyz/chatterino2 that referenced this pull request Aug 19, 2023
…he /mentions channel (Chatterino#4752)

* added messages in mentions tab if correct predicate is met

* Update CHANGELOG.md

* Apply Felanbird's fix

Co-authored-by: Felanbird <[email protected]>

---------

Co-authored-by: 2547techno <[email protected]>
Co-authored-by: 2547techno <[email protected]>
Co-authored-by: Mm2PL <[email protected]>
Co-authored-by: Felanbird <[email protected]>
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.

3 participants