diff options
Diffstat (limited to 'components/chatmessage.cpp')
-rw-r--r-- | components/chatmessage.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/chatmessage.cpp b/components/chatmessage.cpp index 04e621f..28e44fc 100644 --- a/components/chatmessage.cpp +++ b/components/chatmessage.cpp @@ -810,11 +810,11 @@ void ChatMessageItemContainer::HandleCustomEmojis(Gtk::TextView &tv) { } void ChatMessageItemContainer::HandleEmojis(Gtk::TextView &tv) { - static bool emojis = Abaddon::Get().GetSettings().GetShowEmojis(); - if (emojis) { - HandleStockEmojis(tv); - HandleCustomEmojis(tv); - } + static const bool stock_emojis = Abaddon::Get().GetSettings().GetShowStockEmojis(); + static const bool custom_emojis = Abaddon::Get().GetSettings().GetShowCustomEmojis(); + + if (stock_emojis) HandleStockEmojis(tv); + if (custom_emojis) HandleCustomEmojis(tv); } void ChatMessageItemContainer::CleanupEmojis(Glib::RefPtr<Gtk::TextBuffer> buf) { |