2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

Support gifts pinning.

This commit is contained in:
John Preston
2025-03-05 14:57:17 +04:00
parent 7840fa6d90
commit 0f74456f30
14 changed files with 219 additions and 9 deletions

View File

@@ -89,6 +89,10 @@ int AppConfig::paidMessageCommission() const {
return get<int>(u"stars_paid_message_commission_permille"_q, 850);
}
int AppConfig::pinnedGiftsLimit() const {
return get<int>(u"stargifts_pinned_to_top_limit"_q, 6);
}
void AppConfig::refresh(bool force) {
if (_requestId || !_api) {
if (force) {