Animate reactions when reading.

This commit is contained in:
John Preston
2022-01-28 14:44:33 +03:00
parent e509da8fd8
commit 4f1e04cf9e
17 changed files with 85 additions and 64 deletions
@@ -1486,6 +1486,12 @@ void Session::requestAnimationPlayInline(not_null<HistoryItem*> item) {
}
}
void Session::requestUnreadReactionsAnimation(not_null<HistoryItem*> item) {
enumerateItemViews(item, [&](not_null<ViewElement*> view) {
view->animateUnreadReactions();
});
}
rpl::producer<not_null<HistoryItem*>> Session::animationPlayInlineRequest() const {
return _animationPlayInlineRequest.events();
}