Add an EmojiMap which is like an EmoteMap except it contains data for Emojis

Fix emote popup not inserting the correct emoji value on click. It no
inserts the shortcode (i.e. 👌)

Fix #299
This commit is contained in:
Rasmus Karlsson
2018-04-01 16:16:54 +02:00
committed by fourtf
parent 05335c6440
commit 13705f15ed
4 changed files with 25 additions and 24 deletions
+2 -3
View File
@@ -42,7 +42,7 @@ public:
util::EmoteMap &getFFZEmotes();
util::EmoteMap &getChatterinoEmotes();
util::EmoteMap &getBTTVChannelEmoteFromCaches();
util::EmoteMap &getEmojis();
util::EmojiMap &getEmojis();
util::ConcurrentMap<int, util::EmoteData> &getFFZChannelEmoteFromCaches();
util::ConcurrentMap<long, util::EmoteData> &getTwitchEmoteFromCache();
@@ -78,8 +78,7 @@ private:
// Maps the first character of the emoji unicode string to a vector of possible emojis
QMap<QChar, QVector<EmojiData>> emojiFirstByte;
// url Emoji-one image
util::EmoteMap emojis;
util::EmojiMap emojis;
void loadEmojis();