Added simple context for marked text.

This commit is contained in:
23rd 2025-01-08 09:45:33 +03:00
parent aab7ba264c
commit 43dfe559a6
2 changed files with 6 additions and 2 deletions

View file

@ -295,7 +295,11 @@ std::unique_ptr<Ui::Text::CustomEmoji> UiIntegration::createCustomEmoji(
Fn<void()> UiIntegration::createSpoilerRepaint(const std::any &context) {
const auto my = std::any_cast<MarkedTextContext>(&context);
return my ? my->customEmojiRepaint : nullptr;
if (my) {
return my->customEmojiRepaint;
}
const auto common = std::any_cast<CommonTextContext>(&context);
return common ? common->repaint : nullptr;
}
rpl::producer<> UiIntegration::forcePopupMenuHideRequests() {

@ -1 +1 @@
Subproject commit da44ac82a99ec05d7091eaaf6ae96a63bbae3714
Subproject commit d54a4bb510a730d519f6085f81ca021c610402ee