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:
|
case telegram_api::privacyKeyPhoneCall::ID:
|
||||||
type_ = Type::Call;
|
type_ = Type::Call;
|
||||||
break;
|
break;
|
||||||
case telegram_api::inputPrivacyKeyPhoneP2P::ID:
|
case telegram_api::privacyKeyPhoneP2P::ID:
|
||||||
type_ = Type::PeerToPeerCall;
|
type_ = Type::PeerToPeerCall;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -904,6 +904,9 @@ class CliClient final : public Actor {
|
|||||||
if (setting == "call") {
|
if (setting == "call") {
|
||||||
return make_tl_object<td_api::userPrivacySettingAllowCalls>();
|
return make_tl_object<td_api::userPrivacySettingAllowCalls>();
|
||||||
}
|
}
|
||||||
|
if (setting == "p2p") {
|
||||||
|
return make_tl_object<td_api::userPrivacySettingAllowPeerToPeerCalls>();
|
||||||
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user