Commit Graph

2307 Commits

Author SHA1 Message Date
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