Respect price of messages to channels.

This commit is contained in:
John Preston
2025-05-16 13:45:00 +04:00
parent b91a040a32
commit 5dc50b6d96
7 changed files with 35 additions and 21 deletions
@@ -53,6 +53,7 @@ namespace {
constexpr auto kSlowmodeValues = 7;
constexpr auto kBoostsUnrestrictValues = 5;
constexpr auto kForceDisableTooltipDuration = 3 * crl::time(1000);
constexpr auto kDefaultChargeStars = 10;
[[nodiscard]] auto Dependencies(PowerSaving::Flags)
-> std::vector<std::pair<PowerSaving::Flag, PowerSaving::Flag>> {
@@ -1196,7 +1197,8 @@ void ShowEditPeerPermissionsBox(
state->starsPerMessage = SetupChargeSlider(
chargeInner,
peer,
starsPerMessage);
(starsPerMessage > 0) ? starsPerMessage : std::optional<int>(),
kDefaultChargeStars);
}
static constexpr auto kSendRestrictions = Flag::EmbedLinks