2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Proof-of-concept animated custom emoji.

This commit is contained in:
John Preston
2022-06-24 10:49:11 +04:00
parent 21aa1323ec
commit 2e6733e433
9 changed files with 76 additions and 19 deletions

View File

@@ -249,7 +249,9 @@ std::unique_ptr<Ui::Text::CustomEmoji> UiIntegration::createCustomEmoji(
if (!my || !my->session) {
return nullptr;
}
return my->session->data().customEmojiManager().create(data);
return my->session->data().customEmojiManager().create(
data,
my->customEmojiRepaint);
}
rpl::producer<> UiIntegration::forcePopupMenuHideRequests() {

View File

@@ -28,6 +28,7 @@ struct MarkedTextContext {
Main::Session *session = nullptr;
HashtagMentionType type = HashtagMentionType::Telegram;
Fn<void()> customEmojiRepaint;
};
class UiIntegration final : public Ui::Integration {