diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_reactions.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_reactions.cpp index 5313a2ae32..fdc31618f7 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_reactions.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_reactions.cpp @@ -363,15 +363,17 @@ object_ptr AddReactionsSelector( const auto customEmojiPaused = [controller = args.controller] { return controller->isGifPausedAtLeastFor(PauseReason::Layer); }; - auto context = Core::TextContext({ + auto simpleContext = Core::TextContext({ .session = session, + .repaint = [=] { raw->update(); }, }); + auto context = simpleContext; context.customEmojiFactory = [=]( QStringView data, const Ui::Text::MarkedContext &context ) -> std::unique_ptr { const auto id = Data::ParseCustomEmojiData(data); - auto result = Ui::Text::MakeCustomEmoji(data, context); + auto result = Ui::Text::MakeCustomEmoji(data, simpleContext); if (state->unifiedFactoryOwner->lookupReactionId(id).custom()) { return std::make_unique( std::move(result),