Skip to content

Commit

Permalink
fix: personal emotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Feb 18, 2024
1 parent 48cbcd6 commit c570d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/twitch/TwitchChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1836,7 +1836,7 @@ void TwitchChannel::upsertPersonalSeventvEmotes(
/// or, if they're zero-width, to a layered emote element.
const auto upsertWords = [&](MessageElementVec &elements,
TextElement *textElement) {
std::vector<TextElement::Word> words;
QStringList words;

/// Appends a text element with the pending @a words
/// and clears the vector.
Expand Down Expand Up @@ -1900,7 +1900,7 @@ void TwitchChannel::upsertPersonalSeventvEmotes(
// Find all words that match a personal emote and replace them with emotes
for (const auto &word : textElement->words())
{
auto emoteIt = emoteMap->find(EmoteName{word.text});
auto emoteIt = emoteMap->find(EmoteName{word});
if (emoteIt == emoteMap->end())
{
words.emplace_back(word);
Expand Down

0 comments on commit c570d58

Please sign in to comment.