mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-03 18:49:30 +00:00
Simplify marked text context logic.
This commit is contained in:
@@ -172,12 +172,6 @@ private:
|
||||
|
||||
[[nodiscard]] Ui::CollectibleDetails PrepareCollectibleDetails(
|
||||
not_null<Main::Session*> session) {
|
||||
const auto makeContext = [=] {
|
||||
return Core::MarkedTextContext{
|
||||
.session = session,
|
||||
.customEmojiRepaint = [] {},
|
||||
};
|
||||
};
|
||||
return {
|
||||
.tonEmoji = Ui::Text::SingleCustomEmoji(
|
||||
session->data().customEmojiManager().registerInternalEmoji(
|
||||
@@ -186,7 +180,7 @@ private:
|
||||
st::collectibleInfo.textFg->c),
|
||||
st::collectibleInfoTonMargins,
|
||||
true)),
|
||||
.tonEmojiContext = makeContext,
|
||||
.tonEmojiContext = Core::TextContext({ .session = session }),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user