Delete old faq entries.

This commit is contained in:
John Preston
2026-01-16 16:30:01 +04:00
parent ecae9c7794
commit 27e1867346
@@ -191,7 +191,11 @@ void Search::setupContent() {
return loaded;
}) | rpl::take(1) | rpl::on_next([=] {
for (auto i = _faqStartIndex; i < int(_entries.size()); ++i) {
_buttonCache.erase(i);
const auto it = _buttonCache.find(i);
if (it != _buttonCache.end()) {
delete it->second;
_buttonCache.erase(it);
}
}
buildIndex();
const auto query = _searchController