Removed emoji and sticker animations from userpic emoji builder for now.

This commit is contained in:
23rd 2023-01-24 20:00:36 +03:00 committed by John Preston
parent 6fe930c19d
commit dff738f3c6
1 changed files with 3 additions and 5 deletions

View File

@ -63,7 +63,7 @@ private:
std::shared_ptr<Data::DocumentMedia> _media; std::shared_ptr<Data::DocumentMedia> _media;
std::unique_ptr<HistoryView::StickerPlayer> _player; std::unique_ptr<HistoryView::StickerPlayer> _player;
bool _paused = false; bool _paused = true;
rpl::lifetime _lifetime; rpl::lifetime _lifetime;
}; };
@ -300,9 +300,7 @@ EmojiSelector::Selector EmojiSelector::createEmojiList() const {
.session = session, .session = session,
.mode = ChatHelpers::EmojiListMode::FullReactions, .mode = ChatHelpers::EmojiListMode::FullReactions,
.controller = _controller, .controller = _controller,
.paused = [=, reason = Window::GifPauseReason::Layer] { .paused = [=] { return true; },
return _controller->isGifPausedAtLeastFor(reason);
},
.customRecentList = session->api().peerPhoto().profileEmojiList(), .customRecentList = session->api().peerPhoto().profileEmojiList(),
.customRecentFactory = [=](DocumentId id, Fn<void()> repaint) { .customRecentFactory = [=](DocumentId id, Fn<void()> repaint) {
return manager->create(id, std::move(repaint), tag); return manager->create(id, std::move(repaint), tag);
@ -325,7 +323,7 @@ EmojiSelector::Selector EmojiSelector::createStickersList() const {
object_ptr<ChatHelpers::StickersListWidget>( object_ptr<ChatHelpers::StickersListWidget>(
_scroll, _scroll,
_controller, _controller,
Window::GifPauseReason::Layer)); Window::GifPauseReason::Any));
const auto footer = list->createFooter().data(); const auto footer = list->createFooter().data();
list->refreshRecent(); list->refreshRecent();
list->chosen( list->chosen(