mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Support PeerData::isVerifyCodes() peer type.
This commit is contained in:
@@ -142,14 +142,16 @@ void BlockPeerBoxController::rowClicked(not_null<PeerListRow*> row) {
|
||||
|
||||
auto BlockPeerBoxController::createRow(not_null<History*> history)
|
||||
-> std::unique_ptr<BlockPeerBoxController::Row> {
|
||||
if (!history->peer->isUser()
|
||||
|| history->peer->isServiceUser()
|
||||
|| history->peer->isSelf()
|
||||
|| history->peer->isRepliesChat()) {
|
||||
const auto peer = history->peer;
|
||||
if (!peer->isUser()
|
||||
|| peer->isServiceUser()
|
||||
|| peer->isSelf()
|
||||
|| peer->isRepliesChat()
|
||||
|| peer->isVerifyCodes()) {
|
||||
return nullptr;
|
||||
}
|
||||
auto row = std::make_unique<Row>(history);
|
||||
updateIsBlocked(row.get(), history->peer);
|
||||
updateIsBlocked(row.get(), peer);
|
||||
return row;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user