mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
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());
|
delegate()->peerListSetRowChecked(row, !row->checked());
|
||||||
if (const auto channel = row->peer()->asChannel()) {
|
|
||||||
|
if (const auto channel = peer->asChannel()) {
|
||||||
if (!channel->membersCountKnown()) {
|
if (!channel->membersCountKnown()) {
|
||||||
channel->updateFull();
|
channel->updateFull();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue