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:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "util/emotemap.hpp"
|
||||
|
||||
#include <QString>
|
||||
|
||||
namespace chatterino {
|
||||
@@ -13,6 +15,14 @@ struct EmojiData {
|
||||
|
||||
// i.e. thinking
|
||||
QString shortCode;
|
||||
|
||||
util::EmoteData emoteData;
|
||||
};
|
||||
|
||||
namespace util {
|
||||
|
||||
using EmojiMap = ConcurrentMap<QString, EmojiData>;
|
||||
|
||||
} // namespace util
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user