mirror-chatterino2/src/emojis.hpp
Rasmus Karlsson 13705f15ed 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
2018-04-11 22:54:34 +02:00

28 lines
471 B
C++

#pragma once
#include "util/emotemap.hpp"
#include <QString>
namespace chatterino {
struct EmojiData {
// actual byte-representation of the emoji (i.e. \154075\156150 which is :male:)
QString value;
// what's used in the emoji-one url
QString code;
// i.e. thinking
QString shortCode;
util::EmoteData emoteData;
};
namespace util {
using EmojiMap = ConcurrentMap<QString, EmojiData>;
} // namespace util
} // namespace chatterino