mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Fix a crash in chats filter results.
This commit is contained in:
@@ -2320,6 +2320,7 @@ void InnerWidget::appendToFiltered(Key key) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto row = std::make_unique<Row>(key, 0, 0);
|
auto row = std::make_unique<Row>(key, 0, 0);
|
||||||
|
row->recountHeight(_narrowRatio);
|
||||||
const auto [i, ok] = _filterResultsGlobal.emplace(key, std::move(row));
|
const auto [i, ok] = _filterResultsGlobal.emplace(key, std::move(row));
|
||||||
const auto height = filteredHeight();
|
const auto height = filteredHeight();
|
||||||
_filterResults.emplace_back(i->second.get());
|
_filterResults.emplace_back(i->second.get());
|
||||||
|
Reference in New Issue
Block a user