mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
13705f15ed
Fix emote popup not inserting the correct emoji value on click. It no inserts the shortcode (i.e. 👌) Fix #299
28 lines
471 B
C++
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
|