-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
Conversation
…ages-mentions-tab
Co-authored-by: Felanbird <[email protected]>
There was a problem hiding this 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) |
There was a problem hiding this comment.
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]
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) |
There was a problem hiding this comment.
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]
for (MessagePtr msg : messages) | |
for (const MessagePtr& msg : messages) |
…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]>
…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]>
Description
Originally #4475