2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use paid messages values from appConfig.

This commit is contained in:
John Preston
2025-03-01 09:22:07 +04:00
parent 9032489786
commit 827040f487
7 changed files with 142 additions and 102 deletions

View File

@@ -37,10 +37,7 @@ void Credits::apply(const MTPDupdateStarsBalance &data) {
rpl::producer<float64> Credits::rateValue(
not_null<PeerData*> ownedBotOrChannel) {
return rpl::single(
_session->appConfig().get<float64>(
u"stars_usd_withdraw_rate_x1000"_q,
1200) / 1000.);
return rpl::single(_session->appConfig().starsWithdrawRate());
}
void Credits::load(bool force) {