mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Inject full album to the Replies section.
This commit is contained in:
parent
8af559e711
commit
6eedeb3852
1 changed files with 12 additions and 3 deletions
|
@ -162,9 +162,18 @@ void RepliesList::injectRootMessage(not_null<MessagesSlice*> slice) {
|
|||
return;
|
||||
}
|
||||
if (const auto root = lookupRoot()) {
|
||||
slice->ids.push_back(root->fullId());
|
||||
if (slice->fullCount) {
|
||||
++*slice->fullCount;
|
||||
if (const auto group = _history->owner().groups().find(root)) {
|
||||
for (const auto item : group->items) {
|
||||
slice->ids.push_back(item->fullId());
|
||||
}
|
||||
if (slice->fullCount) {
|
||||
*slice->fullCount += group->items.size();
|
||||
}
|
||||
} else {
|
||||
slice->ids.push_back(root->fullId());
|
||||
if (slice->fullCount) {
|
||||
++*slice->fullCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue