Inject discussed message in Replies section.
This commit is contained in:
parent
c2bb2526d3
commit
808e8dcf4f
|
@ -205,6 +205,11 @@ bool RepliesList::buildFromData(not_null<Viewer*> viewer) {
|
||||||
for (auto j = i - useAfter, e = i + useBefore; j != e; ++j) {
|
for (auto j = i - useAfter, e = i + useBefore; j != e; ++j) {
|
||||||
slice->ids.emplace_back(channelId, *j);
|
slice->ids.emplace_back(channelId, *j);
|
||||||
}
|
}
|
||||||
|
if (slice->skippedBefore == 0) {
|
||||||
|
if (const auto root = lookupRoot()) {
|
||||||
|
slice->ids.push_back(root->fullId());
|
||||||
|
}
|
||||||
|
}
|
||||||
ranges::reverse(slice->ids);
|
ranges::reverse(slice->ids);
|
||||||
|
|
||||||
slice->fullCount = _fullCount.current();
|
slice->fullCount = _fullCount.current();
|
||||||
|
|
Loading…
Reference in New Issue