mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Fix appear animation when sending a reaction in a group.
This commit is contained in:
parent
72a093ec77
commit
e121487170
2 changed files with 3 additions and 2 deletions
|
@ -500,7 +500,8 @@ void MessageReactions::add(const QString &reaction) {
|
|||
_chosen = reaction;
|
||||
if (!reaction.isEmpty()) {
|
||||
if (_item->canViewReactions()) {
|
||||
_recent[reaction].push_back(self);
|
||||
auto &list = _recent[reaction];
|
||||
list.insert(begin(list), self);
|
||||
}
|
||||
++_list[reaction];
|
||||
}
|
||||
|
|
|
@ -128,7 +128,7 @@ void InlineList::setButtonUserpics(
|
|||
if (!button.userpics) {
|
||||
button.userpics = std::make_unique<Userpics>();
|
||||
}
|
||||
const auto count = int(users.size());
|
||||
const auto count = button.count = int(users.size());
|
||||
auto &list = button.userpics->list;
|
||||
const auto regenerate = [&] {
|
||||
if (list.size() != count) {
|
||||
|
|
Loading…
Add table
Reference in a new issue