mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-22 08:16:56 +00:00
Fix crash in contacts list box global search.
Regression was introduced in f7359093b4
.
This commit is contained in:
parent
ad41a81b66
commit
c2a1cc2ae8
@ -329,7 +329,10 @@ void ContactsBoxController::checkForEmptyRows() {
|
||||
}
|
||||
|
||||
std::unique_ptr<PeerListRow> ContactsBoxController::createSearchRow(not_null<PeerData*> peer) {
|
||||
return createRow(peer->asUser());
|
||||
if (auto user = peer->asUser()) {
|
||||
return createRow(user);
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void ContactsBoxController::rowClicked(not_null<PeerListRow*> row) {
|
||||
|
Loading…
Reference in New Issue
Block a user