levlam
c30c6168b5
Add and use MessageForwardInfo::need_change_warning.
2024-01-11 19:59:14 +03:00
levlam
edb02aa4c4
Add MessageForwardInfo::is_imported().
2024-01-11 19:39:32 +03:00
levlam
8c6024808a
Add and use MessagesManager::get_message_original_date.
2024-01-11 19:36:00 +03:00
levlam
b3a94f187f
Use public constructor to create legacy-parsed MessageForwardInfo.
2024-01-11 19:29:49 +03:00
levlam
5ccb67f28e
Improve MessageForwardInfo field names.
2024-01-11 19:24:01 +03:00
levlam
d59abc099d
Add MessageForwardInfo getters.
2024-01-11 19:11:16 +03:00
levlam
3ba660a655
Add some MessageForwardInfo methods.
2024-01-11 18:46:10 +03:00
levlam
3cb8ef9807
Store MessageForwardInfo as the whole.
2024-01-11 18:20:53 +03:00
levlam
2ff1a93d5b
Add td_api::cancelRecoveryEmailAddressVerification.
2024-01-11 14:51:29 +03:00
levlam
562374088c
Remove setTdlibParameters.enable_storage_optimizer/ignore_file_names parameters in favor of "use_storage_optimizer" and "ignore_file_names" options.
2024-01-11 13:54:23 +03:00
levlam
bf6345248f
Return keywords in searchEmojis.
2024-01-05 15:21:35 +03:00
levlam
f4bafbdc86
Add separate td_api::getKeywordEmojis.
2024-01-05 14:36:01 +03:00
levlam
4dc89d0b8d
Add StickersManager::prepare_search_emoji_query.
2024-01-05 14:20:00 +03:00
levlam
0b5b4b8dab
Add synchronous td_api::getCountryFlagEmoji.
2024-01-05 13:42:46 +03:00
levlam
a9d1269567
Add more information to chatBoostFeatures.
2024-01-02 17:32:30 +03:00
levlam
8e2ef00696
Apply message self-destruct type changes for being sent messages.
2024-01-02 15:38:43 +03:00
levlam
052f6cb20c
Allow to send self-destructing video notes and voice notes.
2024-01-02 14:51:16 +03:00
levlam
139b61e4b6
Add td_api::messageExpiredVideoNote and td_api::messageExpiredVoiceNote.
2024-01-02 14:27:11 +03:00
levlam
be8b21cdf4
Update layer to 171.
2024-01-02 03:23:51 +03:00
levlam
2b0d3f6091
Improve error message.
2024-01-25 17:33:11 +03:00
levlam
90cc7a5f9c
Improve logging.
2024-01-24 16:31:47 +03:00
levlam
741c80cf13
Fix log message.
2024-01-24 16:06:43 +03:00
levlam
fbd6f27d7b
Don't reload config on restart for bots.
2024-01-24 15:38:11 +03:00
levlam
a262f0a5f7
Avoid some initialization for bots.
2024-01-24 15:24:16 +03:00
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
13c94c7731
Don't init BackgroundManager for bots.
2024-01-24 14:48:17 +03:00
levlam
0c0c24e7d0
Don't log updateOption for bots.
2024-01-24 14:40:56 +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
cd3cc873f0
Fix usage of unsupported chat identifier.
2024-01-23 19:05:39 +03:00
levlam
60f2f75b78
Minor improvements.
2024-01-22 13:11:04 +03:00
levlam
1f116cdd99
Reuse the same PublicRsaKeySharedMain object.
2024-01-22 02:52:58 +03:00
levlam
0dd1934090
Use separate implementations for main and CDN RSA keys.
2024-01-22 02:15:26 +03:00
levlam
e52d08da74
Use PublicRsaKeyInterface in AuthDataShared.
2024-01-22 01:55:16 +03:00
levlam
d5c3456085
Remove default NerQueryDispatcher constructor.
2024-01-22 01:39:31 +03:00
levlam
b4c075593e
Log received message info.
2024-01-21 01:50:20 +03:00
levlam
09c6bad8bd
Remove pinned message notification only if new pinned message is added to Mentions.
2024-01-20 03:30:10 +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
121fbe535f
Create dependent chats right after Message object creation.
2024-01-18 15:21:44 +03:00
levlam
021c0bd02d
Improve logging.
2024-01-18 14:59:53 +03:00
levlam
e5f9e4c400
Decrease UPDATE_APPLY_WARNING_TIME and improve logging.
2024-01-17 16:50:08 +03:00
levlam
14c93b1772
Fix added_message_full_id initialization.
2024-01-16 21:40:25 +03:00
levlam
6d910597e5
Delete message from map after using.
2024-01-16 21:36:24 +03:00
levlam
c2277a1044
Add source to get_user_full_force.
2024-01-15 14:12:00 +03:00
Liru Færs
0f98d76683
Fix DialogActionManager::send_dialog_action in secret chats ( #2756 )
...
* Fix DialogActionManager::send_dialog_action in secret chats
The code in `DialogActionManager::send_dialog_action` made the assumption that since we'd either have early returned or `DialogManager::have_input_peer` would be true, and therefore the else block of the conditional, which intended to set input_peer, should have done so successfully.
However, `DialogManager::have_input_peer` will return true for secret chats when `contacts_manager->have_input_encrypted_peer`
And `DialogManager::get_input_peer` will return a `nullptr` for secret chats by design (I believe this is because they operate using structures that are currently incompatible)
This should fix the root of a crash that happens when typing in or sending messages to secret chats on:
Telegram X 0.26.4.1678-arm64-v8a (99b10675)
TDLib: 1.8.23 (tdlib/td@4bafdc2 )
* Move CHECK below SecretChat case instead per feedback
2024-01-15 01:02:56 +03:00
levlam
58c457ab5f
Add NotificationManager::parse_push_notification_attach.
2024-01-14 23:05:35 +03:00