Commit Graph

7839 Commits

Author SHA1 Message Date
levlam
8b5042f26d Nore that for Node.js >= 17.0 OpenSSL 3.0 is required. 2022-05-02 13:34:50 +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
68ad0b4317 Add ContactsManager::get_dialog_id. 2022-04-30 21:13:01 +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
834a541bc3 Add apply_pending_user_photo and use it in on_get_user_full. 2022-04-29 11:23:27 +03:00
levlam
3cdd08feef Add missing flag assignment. 2022-04-29 11:02:53 +03:00
levlam
6a87f0c6ef Avoid updating chat photo minithumbnail to 40x40 full minithumbnail. 2022-04-29 10:50:10 +03:00
levlam
58ff3d5e5d Ignore photo size for fake dialog photo. 2022-04-28 22:29:10 +03:00
levlam
840cedf49c Drop ChatFull/ChannelFull photos if chat/channel photo is different. 2022-04-28 21:18:57 +03:00
levlam
f421cff7f3 Add and use is_same_dialog_photo. 2022-04-28 21:02:44 +03:00
levlam
d106148618 Update chat/channel photo whenever receive new full chat/channel photo. 2022-04-28 20:35:44 +03:00
levlam
b6f711044f Add as_dialog_photo. 2022-04-28 20:33:24 +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
ea66c0984f Return encrypted secure file if can't decrypt it. 2022-04-27 02:39:00 +03:00
levlam
5cb83bd340 Suppress expected error logging. 2022-04-27 02:14:44 +03:00
levlam
11fa9dbb34 Remove unused function. 2022-04-26 16:19:37 +03:00
levlam
dc79b35570 Check for duplicate calls to init(). 2022-04-26 02:06:35 +03:00
levlam
17275fe422 Output the number of objects to be freed on closing. 2022-04-25 20:52:44 +03:00
levlam
641ee080c1 Improve names of FileType::Secure. 2022-04-25 19:00:40 +03:00
levlam
69eb286067 Avoid expected logging. 2022-04-25 17:59:42 +03:00
levlam
a7bd57a793 Add checks for file_id/file_node_id overflow. 2022-04-25 17:33:31 +03:00
levlam
61942cf3ea Remove unneeded bool initializations in parsers. 2022-04-24 22:43:43 +03:00
levlam
3bd99f98b8 Add limit on text length in parseTextEntities. 2022-04-23 01:36:44 +03:00
levlam
13bd8044cf Add source to send_update_chat_unread_reaction_count. 2022-04-23 01:14:51 +03:00
levlam
0511b962b9 Actually upload file in sendCallLog. 2022-04-22 18:17:36 +03:00
levlam
af97e963a9 Add td_api::sendCallLog. 2022-04-22 15:16:09 +03:00
levlam
1f4890c906 tg_cli: add class GroupCallId. 2022-04-22 14:50:52 +03:00
levlam
849125265c tg_cli: add CallId class. 2022-04-22 14:44:53 +03:00
levlam
f76a9660ed Add can_reuse_remote_file to FileType.cpp. 2022-04-22 14:28:51 +03:00
levlam
f396cadc1a Add FileType::CallLog. 2022-04-21 22:34:26 +03:00
levlam
f6fd1f55cb Add and use get_file_type_class. 2022-04-21 22:14:12 +03:00
levlam
7fcd92a622 Move is_document_file_type to FileType.cpp. 2022-04-21 21:54:33 +03:00
levlam
42911eae75 Update layer 140. 2022-04-20 21:48:36 +03:00
levlam
c021bdfb98 Add 4 more allowed characters for file name from file extension in accordance with Telegram server-side limit. 2022-04-20 19:31:30 +03:00
levlam
0baf4cb070 Improve log message. 2022-04-20 18:56:23 +03:00
levlam
d9faa0c852 Document error 404 for searchUserByPhoneNumber. 2022-04-20 18:49:51 +03:00
levlam
43ea7be0fb Add fast-moved implementation for big HashSet nodes. 2022-04-19 02:33:12 +03:00
levlam
e8c3792776 Don't try to increase hash table if no new element inserted. 2022-04-18 21:27:38 +03:00
levlam
a91bed2996 Add notification sound size and duration checks. 2022-04-18 19:08:32 +03:00
levlam
a506382e4b Use '= {}' instead of '= Auto()'. 2022-04-18 18:21:41 +03:00
levlam
782670c7db Fix anonymous administrator right. 2022-04-17 23:36:37 +03:00
levlam
1a2efed26d Remove NetQuery::set_chain_ids. 2022-04-17 23:21:56 +03:00
levlam
402f75153b Improve get_sticker_set_short_name usages. 2022-04-17 23:07:00 +03:00