Commit Graph

146 Commits

Author SHA1 Message Date
levlam
e7fbcd9d2a Call G()->is_test_dc() only once. 2024-01-24 15:01:14 +03:00
levlam
f24bc41596 Move setting of default option values from ContactsManager to OptionManager. 2024-01-24 14:59:09 +03:00
levlam
5bbfc1cf5d Update premium options on launch only for regular users. 2024-01-23 21:03:04 +03:00
levlam
3cb6ed90db Directly use thread-unsafe key value when initializing it. 2024-01-23 20:36:29 +03:00
levlam
0c8e63c2f5 Optimize set_default_integer_option. 2024-01-23 20:29:31 +03:00
levlam
8d2d2de0d0 Add set_default_integer_option lambda-helper. 2024-01-23 20:16:26 +03:00
levlam
0190bf2b1f Use for_each instead of a temporary map in OptionManager::OptionManager. 2024-01-23 19:42:28 +03:00
levlam
2a9393ff7a Add "process_pinned_messages_as_mentions" option to allow keep previous behavior. 2024-01-19 22:23:26 +03:00
levlam
d963044eb9 Update copyright year. 2024-01-01 03:07:21 +03:00
levlam
27c3eaeb49 Update version to 1.8.23. 2023-12-28 00:36:12 +03:00
levlam
e3a01fddd7 Improve includes. 2023-12-26 21:39:48 +03:00
levlam
969f4a764f Remove "channel_custom_accent_color_boost_level_min" option. 2023-12-26 19:20:06 +03:00
levlam
e4038723b2 Support internal min boost level options. 2023-12-26 19:12:00 +03:00
levlam
91013ee921 Add "chat_available_reaction_count_max" option. 2023-12-26 17:11:34 +03:00
levlam
559cbe5de9 Always update premium-dependent options. 2023-12-08 12:57:13 +03:00
levlam
24893faf75 Update version to 1.8.22. 2023-12-01 23:19:05 +03:00
levlam
ea9e99407f Add "chat_boost_level_max" option. 2023-11-28 14:31:43 +03:00
levlam
00f09dae62 Add td_api::premiumLimitTypeSimilarChatCount. 2023-11-28 14:22:08 +03:00
levlam
3870c29b15 Update version to 1.8.21. 2023-11-06 20:52:28 +03:00
levlam
25eebd3d6f Update default option value. 2023-10-28 22:38:57 +03:00
levlam
adad6d6984 Add "message_reply_quote_length_max" option. 2023-10-27 02:21:29 +03:00
levlam
d7a6e74bea Add "premium_gift_boost_count" option. 2023-10-24 15:34:22 +03:00
levlam
6ec7ab73e5 Add "giveaway_duration_max" option. 2023-10-18 18:28:55 +03:00
levlam
7eec2eb54b Add "giveaway_boost_count_per_premium" option. 2023-10-18 18:25:42 +03:00
levlam
c249fe39af Add "channel_custom_accent_color_boost_level_min" option. 2023-10-18 18:22:54 +03:00
levlam
a6f0260cf2 Add "giveaway_country_count_max" option. 2023-10-13 14:06:05 +03:00
levlam
e24f68a4ff Add "giveaway_additional_chat_count_max" option. 2023-10-13 13:39:14 +03:00
levlam
4ed0b23c9c Update version to 1.8.20. 2023-10-13 00:45:38 +03:00
levlam
2589c3fd46 Update version to 1.8.19. 2023-09-22 16:22:03 +03:00
levlam
0f7193172b Add premiumLimitTypeStorySuggestedReactionAreaCount. 2023-09-18 19:47:34 +03:00
levlam
100ca72b91 Update version to 1.8.18. 2023-09-13 18:14:23 +03:00
levlam
64d66fb3dc Delete expired unconfirmed sessions. 2023-09-12 15:44:57 +03:00
levlam
6a4c78e849 Add internal option "authorization_autoconfirm_period". 2023-09-12 14:32:28 +03:00
levlam
edc528457f Update version to 1.8.17. 2023-09-06 15:37:41 +03:00
levlam
cde095db6c Update version to 1.8.16. 2023-08-15 18:11:16 +03:00
levlam
cabd71c3c3 Add weekly and monthly limits for sent stories. 2023-08-11 15:35:13 +03:00
levlam
2cb463dceb Add "can_use_text_entities_in_story_caption" option. 2023-08-09 15:27:28 +03:00
levlam
086df4db4e Add options related to stealth mode. 2023-08-03 17:38:56 +03:00
levlam
615ddd71e5 Support changes to "story_caption_length_max" option. 2023-07-21 16:38:24 +03:00
levlam
09aa2ec01e Add td_api::premiumLimitTypeStoryCaptionLength. 2023-07-21 15:42:32 +03:00
levlam
0824764b79 Remove "archive_all_stories" option. 2023-08-12 21:53:02 +03:00
levlam
5558825d61 Add class ReactionType. 2023-08-04 18:39:07 +03:00
levlam
fbec238210 Mark "restriction_add_platforms" option as internal. 2023-08-02 12:37:23 +03:00
levlam
0a7c87eb8b Use FlatHashMap in SeqKeyValue. 2023-07-27 13:58:20 +03:00
levlam
c945709bf4 Mark various limit options as internal. 2023-07-21 16:57:11 +03:00
levlam
be9d779f5c Fix "story_caption_length_max" option. 2023-07-21 16:33:39 +03:00
levlam
2e5319ff36 Update version to 1.8.15. 2023-07-20 22:24:40 +03:00
levlam
6685bcfd7a Remove "archive_and_mute_new_chats_from_unknown_users" option. 2023-07-14 15:41:38 +03:00
levlam
1669f8d4b8 Init sessions if there are multiple sessions. 2023-07-12 21:08:01 +03:00
levlam
3937eb7bdf Add "story_viewers_expiration_delay" option. 2023-07-08 08:42:59 +03:00