mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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;
|
return;
|
||||||
}
|
}
|
||||||
if (const auto root = lookupRoot()) {
|
if (const auto root = lookupRoot()) {
|
||||||
slice->ids.push_back(root->fullId());
|
if (const auto group = _history->owner().groups().find(root)) {
|
||||||
if (slice->fullCount) {
|
for (const auto item : group->items) {
|
||||||
++*slice->fullCount;
|
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