fix: support completing emotes starting with : (#5603)

This commit is contained in:
nerix
2024-10-06 11:29:52 +02:00
committed by GitHub
parent 0085fb64ac
commit 9ba7ef324d
7 changed files with 69 additions and 43 deletions
+1 -1
View File
@@ -371,7 +371,7 @@ void TwitchAccount::reloadEmotes(void *caller)
auto meta = getTwitchEmoteSetMeta(emote);
auto emotePtr = twitchEmotes->getOrCreateEmote(id, name);
if (!emoteMap->try_emplace(name, emotePtr).second)
if (!emoteMap->try_emplace(emotePtr->name, emotePtr).second)
{
// if the emote already exists, we don't want to add it to a set as
// those are assumed to be disjoint