Fix PeerToPeer calls privacy.

GitOrigin-RevId: e1732e5fffc1b76375766c02acfefc86ae7c7b45
This commit is contained in:
levlam 2019-02-07 21:53:54 +03:00
parent 41d162f62b
commit de7befcbd2
2 changed files with 4 additions and 1 deletions

View File

@ -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:

View File

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