MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / pushPrivacy

Method pushPrivacy

Telegram/SourceFiles/api/api_user_privacy.cpp:328–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328void UserPrivacy::pushPrivacy(Key key, const TLRules &rules) {
329 const auto &saved
330 = (_privacyValues[key] = TLToRules(rules, _session->data()));
331 const auto i = _privacyChanges.find(key);
332 if (i != end(_privacyChanges)) {
333 i->second.fire_copy(saved);
334 }
335}
336
337auto UserPrivacy::value(Key key) -> rpl::producer<UserPrivacy::Rule> {
338 if (const auto i = _privacyValues.find(key); i != end(_privacyValues)) {

Callers

nothing calls this directly

Calls 3

TLToRulesFunction · 0.85
dataMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected