From ab5e7b1588df640b9e02b316cc25052ff67924a8 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Mon, 23 Sep 2024 16:18:58 +0300 Subject: [PATCH] Fixed color of mini icon for drafts with reply when dialog is selected. --- Telegram/SourceFiles/dialogs/ui/dialogs_layout.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Telegram/SourceFiles/dialogs/ui/dialogs_layout.cpp b/Telegram/SourceFiles/dialogs/ui/dialogs_layout.cpp index f66cc4e6c..f1431ad9d 100644 --- a/Telegram/SourceFiles/dialogs/ui/dialogs_layout.cpp +++ b/Telegram/SourceFiles/dialogs/ui/dialogs_layout.cpp @@ -479,12 +479,12 @@ void PaintRow( Text::WithEntities); if (draft && draft->reply) { auto &data = thread->owner().customEmojiManager(); - const auto internal = data.registerInternalEmoji( - st::dialogsMiniReplyIcon, - {}, - false); - draftText = Ui::Text::SingleCustomEmoji( - std::move(internal)).append(std::move(draftText)); + draftText = Ui::Text::Colorized( + Ui::Text::SingleCustomEmoji( + data.registerInternalEmoji( + st::dialogsMiniReplyIcon, + {}, + true))).append(std::move(draftText)); } const auto context = Core::MarkedTextContext{ .session = &thread->session(),