2
0
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:
John Preston
2024-09-20 17:29:30 +04:00
parent 4803bd4b3f
commit 79b1c0edee
47 changed files with 391 additions and 85 deletions

View File

@@ -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;
}