From 4b48774cbb5a633b402c982e6582124004e59a40 Mon Sep 17 00:00:00 2001 From: KleberPF <43550602+KleberPF@users.noreply.github.com> Date: Sat, 17 Feb 2024 08:49:06 -0300 Subject: [PATCH] fix: searching redemptions that require user input (#5177) Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com> --- CHANGELOG.md | 1 + src/providers/twitch/TwitchMessageBuilder.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3249aaaa1..e904f9aa7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ - Bugfix: Fixed too much text being copied when copying chat messages. (#4812, #4830, #4839) - Bugfix: Fixed an issue where the setting `Only search for emote autocompletion at the start of emote names` wouldn't disable if it was enabled when the client started. (#4855) - Bugfix: Fixed empty page being added when showing out of bounds dialog. (#4849) +- Bugfix: Fixed an issue preventing searching a redemption by it's title when the redemption contained text input. (#5117) - Bugfix: Fixed issue on Windows preventing the title bar from being dragged in the top left corner. (#4873) - Bugfix: Fixed an issue where reply context didn't render correctly if an emoji was touching text. (#4875, #4977) - Bugfix: Fixed the input completion popup from disappearing when clicking on it on Windows and macOS. (#4876) diff --git a/src/providers/twitch/TwitchMessageBuilder.cpp b/src/providers/twitch/TwitchMessageBuilder.cpp index 5037da561..e333d155a 100644 --- a/src/providers/twitch/TwitchMessageBuilder.cpp +++ b/src/providers/twitch/TwitchMessageBuilder.cpp @@ -564,9 +564,10 @@ MessagePtr TwitchMessageBuilder::build() this->stylizeUsername(this->userName, this->message()); this->message().messageText = this->originalMessage_; - this->message().searchText = stylizedUsername + " " + - this->message().localizedName + " " + - this->userName + ": " + this->originalMessage_; + this->message().searchText = + stylizedUsername + " " + this->message().localizedName + " " + + this->userName + ": " + this->originalMessage_ + " " + + this->message().searchText; // highlights this->parseHighlights();