mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Added simple context for marked text.
This commit is contained in:
parent
aab7ba264c
commit
43dfe559a6
2 changed files with 6 additions and 2 deletions
|
@ -295,7 +295,11 @@ std::unique_ptr<Ui::Text::CustomEmoji> UiIntegration::createCustomEmoji(
|
||||||
|
|
||||||
Fn<void()> UiIntegration::createSpoilerRepaint(const std::any &context) {
|
Fn<void()> UiIntegration::createSpoilerRepaint(const std::any &context) {
|
||||||
const auto my = std::any_cast<MarkedTextContext>(&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() {
|
rpl::producer<> UiIntegration::forcePopupMenuHideRequests() {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit da44ac82a99ec05d7091eaaf6ae96a63bbae3714
|
Subproject commit d54a4bb510a730d519f6085f81ca021c610402ee
|
Loading…
Add table
Reference in a new issue