diff options
-rw-r--r-- | components/chatmessage.cpp | 1 | ||||
-rw-r--r-- | discord/message.hpp | 33 |
2 files changed, 18 insertions, 16 deletions
diff --git a/components/chatmessage.cpp b/components/chatmessage.cpp index dc8d670..85d8f16 100644 --- a/components/chatmessage.cpp +++ b/components/chatmessage.cpp @@ -205,6 +205,7 @@ void ChatMessageItemContainer::UpdateTextComponent(Gtk::TextView *tv) { b->get_bounds(s, e); switch (data->Type) { case MessageType::DEFAULT: + case MessageType::INLINE_REPLY: b->insert(s, data->Content); HandleUserMentions(tv); HandleLinks(tv); diff --git a/discord/message.hpp b/discord/message.hpp index 4de9235..e2effc4 100644 --- a/discord/message.hpp +++ b/discord/message.hpp @@ -8,22 +8,23 @@ #include <vector> enum class MessageType { - DEFAULT = 0, - RECIPIENT_ADD = 1, - RECIPIENT_REMOVE = 2, - CALL = 3, - CHANNEL_NAME_CHANGE = 4, - CHANNEL_ICON_CHANGE = 5, - CHANNEL_PINNED_MESSAGE = 6, - GUILD_MEMBER_JOIN = 7, - USER_PREMIUM_GUILD_SUBSCRIPTION = 8, - USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1 = 9, - USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2 = 10, - USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3 = 11, - CHANNEL_FOLLOW_ADD = 12, - GUILD_DISCOVERY_DISQUALIFIED = 14, - GUILD_DISCOVERY_REQUALIFIED = 15, - INLINE_REPLY = 19, + DEFAULT = 0, // yep + RECIPIENT_ADD = 1, // nope + RECIPIENT_REMOVE = 2, // nope + CALL = 3, // nope + CHANNEL_NAME_CHANGE = 4, // nope + CHANNEL_ICON_CHANGE = 5, // nope + CHANNEL_PINNED_MESSAGE = 6, // yep + GUILD_MEMBER_JOIN = 7, // yep + USER_PREMIUM_GUILD_SUBSCRIPTION = 8, // nope + USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1 = 9, // nope + USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2 = 10, // nope + USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3 = 11, // nope + CHANNEL_FOLLOW_ADD = 12, // nope + GUILD_DISCOVERY_DISQUALIFIED = 14, // nope + GUILD_DISCOVERY_REQUALIFIED = 15, // nope + INLINE_REPLY = 19, // kinda + APPLICATION_COMMAND, // nope }; enum class MessageFlags { |