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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user