mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-29 13:39:06 +00:00
Fix crash in search row select in privacy edition.
This commit is contained in:
parent
ddbd36e446
commit
c0043d56ea
@ -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…
x
Reference in New Issue
Block a user