| 326 | } |
| 327 | |
| 328 | void 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 | |
| 337 | auto UserPrivacy::value(Key key) -> rpl::producer<UserPrivacy::Rule> { |
| 338 | if (const auto i = _privacyValues.find(key); i != end(_privacyValues)) { |