Key twitch emotes by QString instead of std::string
This commit is contained in:
@@ -72,7 +72,7 @@ void TwitchEmotes::refresh(const std::shared_ptr<TwitchAccount> &user)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
TwitchAccountEmoteData &emoteData = this->emotes[roomID.toStdString()];
|
TwitchAccountEmoteData &emoteData = this->emotes[roomID];
|
||||||
|
|
||||||
if (emoteData.filled) {
|
if (emoteData.filled) {
|
||||||
qDebug() << "Already loaded for room id " << roomID;
|
qDebug() << "Already loaded for room id " << roomID;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public:
|
|||||||
bool filled = false;
|
bool filled = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
std::map<std::string, TwitchAccountEmoteData> emotes;
|
std::map<QString, TwitchAccountEmoteData> emotes;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// emote code
|
// emote code
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ void EmotePopup::loadChannel(ChannelPtr _channel)
|
|||||||
|
|
||||||
// fourtf: the entire emote manager needs to be refactored so there's no point in trying to
|
// fourtf: the entire emote manager needs to be refactored so there's no point in trying to
|
||||||
// fix this pile of garbage
|
// fix this pile of garbage
|
||||||
for (const auto &set : app->emotes->twitch.emotes[userID.toStdString()].emoteSets) {
|
for (const auto &set : app->emotes->twitch.emotes[userID].emoteSets) {
|
||||||
// TITLE
|
// TITLE
|
||||||
messages::MessageBuilder builder1;
|
messages::MessageBuilder builder1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user