Lines Matching refs:restrictions
120 const auto restrictions = Data::ListOfRestrictions(); in RestrictionLabels() local
123 vector.emplace_back(restrictions[i++], key(tr::now)); in RestrictionLabels()
255 const auto restrictions = FixDependentRestrictions([&] { in DisabledByDefaultRestrictions() local
264 | ((restrictions & Restriction::PinMessages) in DisabledByDefaultRestrictions()
276 | ((restrictions & Restriction::ChangeInfo) in DisabledByDefaultRestrictions()
281 ChatRestrictions FixDependentRestrictions(ChatRestrictions restrictions) { in FixDependentRestrictions() argument
282 const auto &dependencies = Dependencies(restrictions); in FixDependentRestrictions()
286 if (restrictions & ChatRestriction::SendStickers) { in FixDependentRestrictions()
287 restrictions |= ChatRestriction::SendInline; in FixDependentRestrictions()
289 restrictions &= ~ChatRestriction::SendInline; in FixDependentRestrictions()
295 if ((restrictions & second) && !(restrictions & first)) { in FixDependentRestrictions()
296 restrictions |= first; in FixDependentRestrictions()
304 return restrictions; in FixDependentRestrictions()
402 const auto restrictions = FixDependentRestrictions([&] { in prepare() local
433 restrictions, in prepare()
758 ChatRestrictions restrictions, in CreateEditRestrictions() argument
763 NegateRestrictions(restrictions), in CreateEditRestrictions()