Commit Graph

2373 Commits

Author SHA1 Message Date
levlam
ddb572b830 Add more debug for have_full_history. 2022-07-15 17:03:40 +03:00
levlam
4f7113395b Add td_api::messageGiftedPremium. 2022-07-01 15:28:22 +03:00
levlam
262ea91d9a Drop via_bot from forwarded Audio. 2022-07-25 16:28:46 +03:00
levlam
a63642c8bf Avoid broken server copy for some quizes. 2022-07-24 12:54:49 +03:00
levlam
698b34709f Make DownloadManager::add_file asynchronous. 2022-07-23 17:11:25 +03:00
levlam
061aac58db Make DownloadManager interface mostly asynchronous. 2022-07-23 16:41:03 +03:00
levlam
8efe57fb6b Fix ForwardMessagesLogEvent. 2022-07-23 12:06:14 +03:00
levlam
3506bc94dc Check messageMediaPoll validness for just sent messages. 2022-07-23 11:32:08 +03:00
levlam
4cf1e02479 Add multiarg version of Scheduler::destroy_on_scheduler. 2022-07-22 21:21:30 +03:00
levlam
0f87447ffc Asynchronously destroy some big data storages. 2022-07-20 13:40:14 +03:00
levlam
75902bb8a7 Improve logging. 2022-07-17 13:31:43 +03:00
levlam
d75791481f Improve FileView::get_main_file_id() method name. 2022-07-03 12:01:08 +03:00
levlam
aeed6c45d7 Add logging for skipped unneeded chat actions. 2022-07-01 16:56:27 +03:00
levlam
d9d76adb7c Return user_id in inline keyboard as is for local and yet unsent messages. 2022-06-29 11:17:51 +03:00
levlam
e8dccae751 Explicitly pass ContactsManager to
get_input_reply_markup/get_reply_markup_object.
2022-06-28 18:34:53 +03:00
levlam
26fdb92dd8 Minor improvements. 2022-06-28 15:32:05 +03:00
levlam
32bac7bd24 Move Promise to tdutils. 2022-06-27 13:30:18 +03:00
levlam
f62632fcbc Remove rarely used PromiseCreator::lambda with 2 lambdas. 2022-06-26 17:11:27 +03:00
levlam
3dcafdc873 Improve log messages. 2022-06-25 21:22:02 +03:00
levlam
c4690c9ed3 Add more logging. 2022-06-24 14:59:02 +03:00
levlam
c51f283332 Improve logging. 2022-06-24 13:44:54 +03:00
levlam
638b4346ca Remove separate MessagesManager::on_update_scheduled_message_id. 2022-06-23 17:05:43 +03:00
levlam
80df1e2968 Add notificationTypeNewMessage.show_preview. 2022-06-16 18:54:50 +03:00
levlam
83fdbd7859 Move some AvailableReaction methods to AvailableReaction.h. 2022-06-09 01:48:39 +03:00
levlam
cb98c0a10a Add class AvailableReaction. 2022-06-09 01:07:53 +03:00
levlam
2570044eba Return, whether available reaction needs premium. 2022-06-08 17:34:13 +03:00
levlam
e81424ee86 Fix warning message. 2022-06-03 17:35:23 +03:00
levlam
8fae960e43 Support premium stickers in secret chats. 2022-06-03 17:31:48 +03:00
levlam
8b9bed6a0b Add messageSticker.is_premium. 2022-06-03 16:33:49 +03:00
levlam
c584b48c10 Replace MAX_INCLUDED_FILTER_DIALOGS with a function. 2022-05-23 19:04:09 +03:00
levlam
ef28bae155 Document the ability to increase limits with Telegram Premium. 2022-05-23 18:52:01 +03:00
levlam
e336819ac8 Add and use "chat_filter_count_max" option. 2022-05-23 18:26:54 +03:00
levlam
4e8e95c81c Expect empty input media for a file too big to be sent to a secret chat. 2022-05-20 16:31:41 +03:00
levlam
2f186a9eeb Allow to change position of main chat list for premium users. 2022-05-19 21:19:06 +03:00
levlam
9f8de1d146 Add main_chat_list_position to updateChatFilters. 2022-05-19 16:57:11 +03:00
levlam
63d607c6c3 Improve rescheduling of scheduled messages with replies. 2022-05-18 21:11:28 +03:00
levlam
647374a33f Keep replies in forwarded scheduled messages. 2022-05-18 20:40:44 +03:00
levlam
9092c58af7 Update replied message identifier in delete_sent_message_on_server. 2022-05-18 19:10:48 +03:00
levlam
880a582959 Add layer 143 to secret chats. 2022-05-11 07:46:06 +03:00
levlam
ad8a2d2296 Reload channel after receiving CHAT_GUEST_SEND_FORBIDDEN. 2022-04-29 18:36:41 +03:00
levlam
2345933422 Fix chat to send messages as from a web app. 2022-04-26 17:13:31 +03:00
levlam
cfc20397a0 Update layer to 143. 2022-04-19 17:43:24 +03:00
levlam
047246f366 Fix CHECK. 2022-06-12 16:03:53 +03:00
levlam
492a84d52b Fix setting first_database_message_id. 2022-06-03 02:29:10 +03:00
levlam
1c0205c1be Improve log message. 2022-06-03 02:12:26 +03:00
levlam
72f3288bec Add source to get_history_from_the_end_impl. 2022-05-31 16:33:37 +03:00
levlam
cd458ce522 Improve log message. 2022-05-31 16:10:11 +03:00
levlam
dc8d94383a Call get_message_id once in on_get_history. 2022-05-31 15:56:38 +03:00
levlam
bcea804864 Keep chat position if failed to add last message to it. 2022-05-31 15:39:41 +03:00
levlam
d2c6e7726f Avoid fixing last_new_message_id to yet_unsent message in secret chats. 2022-05-26 18:51:22 +03:00
levlam
c0890a5f8a Improve error message. 2022-05-26 18:35:16 +03:00
levlam
c3f9904052 Don't send typings about copied messages. 2022-05-26 17:44:14 +03:00
levlam
f8951e6154 Improve log message. 2022-05-26 17:01:47 +03:00
levlam
a136ee5caa Locally search for short usernames, beginning with @. 2022-05-26 16:53:32 +03:00
levlam
0c839c8169 Ignore QUERY_TOO_SHORT errors. 2022-05-26 16:38:37 +03:00
levlam
c5dfa59782 Fix MessagesManager::can_delete_dialog. 2022-05-24 17:41:32 +03:00
levlam
9c9a74c52d Workaround GCC 7.4.0 false warning. 2022-05-19 19:50:02 +03:00
levlam
16959e33e4 Use WaitFreeHashMap for message_id_to_dialog_id_. 2022-05-19 19:34:48 +03:00
levlam
1616513c4c Add and use MessagesManager::is_deleted_message. 2022-05-18 12:16:32 +03:00
levlam
e65c0827a4 Drop dangling replies to yet unsent messages. 2022-05-17 16:27:46 +03:00
levlam
0bf2aaf4f2 Resolve identifiers of being added secret messages by their random_id. 2022-05-17 16:19:39 +03:00
levlam
19407656b5 Add more logging and don't set unused message flags. 2022-05-17 15:30:58 +03:00
levlam
f53f750b39 Change replied message ID from yet unsent to persistent after the message is sent. 2022-05-17 15:06:40 +03:00
levlam
bf37753056 Keep reply_to_message_id for forwards to secret chats. 2022-05-16 21:10:18 +03:00
levlam
8f42c97252 Fix CHECK. 2022-05-16 20:00:59 +03:00
levlam
26ceefb2d4 Keep reply_to_message_id for yet unsent messages between restarts. 2022-05-16 19:47:06 +03:00
levlam
190117c839 Add local reply_to_message_id to forwarded by the server messages. 2022-05-16 18:11:49 +03:00
levlam
b6c7da172c Log received messages. 2022-05-15 18:37:55 +03:00
levlam
5a1a64764b Add check that there are no two new chats added simultaneously. 2022-05-15 10:53:06 +03:00
levlam
70050704d2 Remove unimplemented UploadCallback::on_progress. 2022-05-15 01:13:07 +03:00
levlam
de5f047dba Remove all emoji modifiers, including modifiers in the middle. 2022-05-12 18:02:27 +03:00
levlam
3d796860d2 Use server-side forward as copy. 2022-05-08 23:54:04 +03:00
levlam
0a91c2b097 Remove unused argument. 2022-05-05 23:07:42 +03:00
levlam
fb1efdbba8 Return back notification.is_silent. 2022-05-03 16:09:40 +03:00
levlam
4652292037 Use count instead of find if appropriate. 2022-05-01 23:03:06 +03:00
levlam
00aa9f54bd Use ContactsManager::get_dialog_id in on_get_common_dialogs. 2022-04-30 21:22:27 +03:00
levlam
f2dead72ca Use can_delete_dialog in delete_dialog_history. 2022-04-29 14:50:54 +03:00
levlam
ddbfc45925 Add MessagesManager::can_delete_dialog. 2022-04-29 14:33:35 +03:00
levlam
cdd82c67c9 Unify update variable names. 2022-04-28 18:39:05 +03:00
levlam
576c96a83d Reload number of unread reactions after receive new edited message. 2022-04-28 18:31:25 +03:00
levlam
ad65446480 Reget unread reaction count when receive update about unread reaction on unknown message. 2022-04-28 17:43:29 +03:00
levlam
36c2ef9e62 Ensure that the current user is among recent choosers of the chosen reaction. 2022-04-27 22:13:05 +03:00
levlam
ee157920e9 Expect that it is not possible to see added reactions under discussion messages. 2022-04-27 21:47:50 +03:00
levlam
7cabdbc74f Improve flags initialization in do_forward_messages. 2022-04-27 10:02:35 +03:00
levlam
17275fe422 Output the number of objects to be freed on closing. 2022-04-25 20:52:44 +03:00
levlam
13bd8044cf Add source to send_update_chat_unread_reaction_count. 2022-04-23 01:14:51 +03:00
levlam
7fcd92a622 Move is_document_file_type to FileType.cpp. 2022-04-21 21:54:33 +03:00
levlam
1a2efed26d Remove NetQuery::set_chain_ids. 2022-04-17 23:21:56 +03:00
levlam
b9036dda3e Don't call get_history_from_the_end for bots. 2022-04-17 14:33:34 +03:00
levlam
3215bb0242 Replace is_silent with sound_id in notifications. 2022-04-15 18:36:24 +03:00
levlam
163e739302 Add set_promises/fail_promises helper functions. 2022-04-13 17:40:12 +03:00
levlam
2696a4abbb Restore failed to delete messages. 2022-04-12 17:34:08 +03:00
levlam
877452f6ce Add Global::get_retry_after. 2022-04-12 16:12:22 +03:00
levlam
7a2b3abe18 Support new NotificationSound. 2022-04-11 20:01:44 +03:00
levlam
bb8c4ca42c Fix updating of Dialog.available_reactions_generation. 2022-04-11 16:01:30 +03:00
levlam
80d57a493f Move get_input_notify_peer to NotificationSettingsManager. 2022-04-11 13:06:16 +03:00
levlam
9fd72e86d0 Move scope notification settings tp NotificationSettingsManager. 2022-04-11 12:45:52 +03:00
levlam
b3a0c1dcda Fix notifications settings of newly created chats. 2022-04-08 18:08:06 +03:00
levlam
cb5fe8c7cd Move some related to notification settings methods to NotificationSettingsManager. 2022-04-08 17:17:56 +03:00
levlam
161d34fc15 Keep in chat list empty joined basic groups. 2022-04-08 15:35:21 +03:00