mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 15:17:07 +02:00
Fix crash in search row select in privacy edition.
This commit is contained in:
parent
ddbd36e446
commit
c0043d56ea
1 changed files with 5 additions and 1 deletions
|
@ -77,8 +77,12 @@ std::vector<not_null<PeerData*>> PrivacyExceptionsBoxController::getResult() con
|
|||
}
|
||||
|
||||
void PrivacyExceptionsBoxController::rowClicked(not_null<PeerListRow*> row) {
|
||||
const auto peer = row->peer();
|
||||
|
||||
// This call may delete row, if it was a search result row.
|
||||
delegate()->peerListSetRowChecked(row, !row->checked());
|
||||
if (const auto channel = row->peer()->asChannel()) {
|
||||
|
||||
if (const auto channel = peer->asChannel()) {
|
||||
if (!channel->membersCountKnown()) {
|
||||
channel->updateFull();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue