Fix appear animation when sending a reaction in a group.
This commit is contained in:
parent
72a093ec77
commit
e121487170
|
@ -500,7 +500,8 @@ void MessageReactions::add(const QString &reaction) {
|
||||||
_chosen = reaction;
|
_chosen = reaction;
|
||||||
if (!reaction.isEmpty()) {
|
if (!reaction.isEmpty()) {
|
||||||
if (_item->canViewReactions()) {
|
if (_item->canViewReactions()) {
|
||||||
_recent[reaction].push_back(self);
|
auto &list = _recent[reaction];
|
||||||
|
list.insert(begin(list), self);
|
||||||
}
|
}
|
||||||
++_list[reaction];
|
++_list[reaction];
|
||||||
}
|
}
|
||||||
|
|
|
@ -128,7 +128,7 @@ void InlineList::setButtonUserpics(
|
||||||
if (!button.userpics) {
|
if (!button.userpics) {
|
||||||
button.userpics = std::make_unique<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;
|
auto &list = button.userpics->list;
|
||||||
const auto regenerate = [&] {
|
const auto regenerate = [&] {
|
||||||
if (list.size() != count) {
|
if (list.size() != count) {
|
||||||
|
|
Loading…
Reference in New Issue