2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +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

@@ -566,7 +566,10 @@ void Filler::addSupportInfo() {
}
void Filler::addInfo() {
if (_peer && (_peer->isSelf() || _peer->isRepliesChat())) {
if (_peer
&& (_peer->isSelf()
|| _peer->isRepliesChat()
|| _peer->isVerifyCodes())) {
return;
} else if (!_thread) {
return;
@@ -805,7 +808,8 @@ void Filler::addBlockUser() {
if (!user
|| user->isInaccessible()
|| user->isSelf()
|| user->isRepliesChat()) {
|| user->isRepliesChat()
|| user->isVerifyCodes()) {
return;
}
const auto window = &_controller->window();
@@ -1227,6 +1231,7 @@ void Filler::addGiftPremium() {
|| user->isNotificationsUser()
|| !user->canReceiveGifts()
|| user->isRepliesChat()
|| user->isVerifyCodes()
|| !user->session().premiumCanBuy()) {
return;
}