Fix PeerToPeer calls privacy.
GitOrigin-RevId: e1732e5fffc1b76375766c02acfefc86ae7c7b45
This commit is contained in:
parent
41d162f62b
commit
de7befcbd2
@ -38,7 +38,7 @@ PrivacyManager::UserPrivacySetting::UserPrivacySetting(const telegram_api::Priva
|
||||
case telegram_api::privacyKeyPhoneCall::ID:
|
||||
type_ = Type::Call;
|
||||
break;
|
||||
case telegram_api::inputPrivacyKeyPhoneP2P::ID:
|
||||
case telegram_api::privacyKeyPhoneP2P::ID:
|
||||
type_ = Type::PeerToPeerCall;
|
||||
break;
|
||||
default:
|
||||
|
@ -904,6 +904,9 @@ class CliClient final : public Actor {
|
||||
if (setting == "call") {
|
||||
return make_tl_object<td_api::userPrivacySettingAllowCalls>();
|
||||
}
|
||||
if (setting == "p2p") {
|
||||
return make_tl_object<td_api::userPrivacySettingAllowPeerToPeerCalls>();
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user