Fix a crash in chats filter results.

This commit is contained in:
John Preston 2022-12-04 08:00:17 +04:00
parent a8c230aba3
commit e26dd4e418
1 changed files with 1 additions and 0 deletions

View File

@ -2320,6 +2320,7 @@ void InnerWidget::appendToFiltered(Key key) {
}
}
auto row = std::make_unique<Row>(key, 0, 0);
row->recountHeight(_narrowRatio);
const auto [i, ok] = _filterResultsGlobal.emplace(key, std::move(row));
const auto height = filteredHeight();
_filterResults.emplace_back(i->second.get());