Commit Graph

3851 Commits

Author SHA1 Message Date
levlam
74a960aca1 Allow zero sender in searchChatMessages. 2020-11-19 14:55:09 +03:00
levlam
ebfe3f3d99 Improve new interface documentation. 2020-11-18 23:42:26 +03:00
levlam
6f26706da5 Fix closing connection on too much dropped packets. 2020-11-18 17:49:29 +03:00
levlam
3f33d15879 Always adjust part size to keep low number of parts in downloaded files. 2020-11-17 02:59:58 +03:00
levlam
52a47b5f70 Add small margin for the maximum number of file parts on download. 2020-11-17 01:19:27 +03:00
levlam
78e45da6b9 Use array instead of std::vector in the generated C++ classes. 2020-11-15 19:57:03 +03:00
levlam
f693874c50 Improve documentation. 2020-11-15 17:38:10 +03:00
levlam
5eea5b7501 Rename create_client to create_client_id. 2020-11-15 01:13:11 +03:00
levlam
6a9cd72636 Don't create client through ClientManager until first request is sent to it. 2020-11-12 14:45:18 +03:00
levlam
597c0d2983 Add checks that client ID doesn't overflow. 2020-11-12 01:19:30 +03:00
levlam
9725780fc6 Replace referenced text with anchor name in richTextReference to support nested references. 2020-11-11 16:41:30 +03:00
levlam
ea8c57fea3 Fix canceling chat actions on timeout. 2020-11-09 12:33:40 +03:00
levlam
f9a600c401 Minor fixes. 2020-11-08 14:00:36 +03:00
levlam
b21d667bdf Fix compilation error. 2020-11-08 12:09:27 +03:00
levlam
60edadab90 Automatically group forwarded documents and music files. 2020-11-08 00:40:12 +03:00
levlam
0713c913de Remove now unneeded postponed_get_message_requests_. 2020-11-08 00:40:12 +03:00
levlam
00382f825b Get channel difference if it is needed to add messages. 2020-11-08 00:40:12 +03:00
levlam
ed25a03dda Get channel difference before adding discussion message if needed. 2020-11-08 00:40:12 +03:00
levlam
260c15e3e9 Add process_discussion_message method. 2020-11-08 00:40:12 +03:00
levlam
8f623e8be7 Add early check for another active channel difference. 2020-11-08 00:40:12 +03:00
levlam
cb06833eb1 Reload full dialog info with a small delay. 2020-11-08 00:40:06 +03:00
levlam
da1f073e22 Forward messages in two passes. 2020-11-06 16:00:56 +03:00
levlam
398c7cfd52 Don't drop administrator count in non-admined supergroups. 2020-11-06 15:16:30 +03:00
Sergey Polovko
645052bec7
Implement hash function for MessageContentType enum. (#1283) 2020-11-06 02:05:15 +03:00
levlam
254823d602 Fix search inside message threads. 2020-11-05 17:46:47 +03:00
levlam
c1de6a7d8d Minor improvements.
GitOrigin-RevId: eb8b201d80405feb6972b2eabc7de30d40aa8b81
2020-11-02 00:43:57 +03:00
levlam
301c8b167f Allow passing outdated yet unsent message identifier to getRepliedMessage.
GitOrigin-RevId: b24c47456a3716022de52fe030245e048ff5d053
2020-11-01 23:24:29 +03:00
levlam
ab5484fd78 Improve logging.
GitOrigin-RevId: 2d3e19395b48d4c6c330a852d559b537ff363b4e
2020-11-01 23:22:42 +03:00
levlam
69ae1d4f0c Allow auth.bindTempAuthKey before authorization to check auth_key validness.
GitOrigin-RevId: 7a80d84aef6a9f097c6567ed72bccd9b62f87c2c
2020-11-01 21:42:48 +03:00
levlam
3a8931cff0 Ping server only if authorized.
GitOrigin-RevId: 02e272e5dd2892fde8df74b968091d14fb96ed54
2020-11-01 21:36:42 +03:00
levlam
c8949e264d Allow access to channel if it has linked channel, but we can't check access to it.
GitOrigin-RevId: 897e86d18ad2b3c829c4ac544320fa4ee4ebd31b
2020-10-31 19:40:08 +03:00
levlam
ed0bf2c1b3 Ignore failed to load chats in getChatFilter.
GitOrigin-RevId: 5c1871080e56576f402917e1ecfbf0c99da0deba
2020-10-31 16:43:26 +03:00
levlam
778adce53d Add debug logging.
GitOrigin-RevId: 08ae2a25ae086a2211658239a532e1e19d996a4f
2020-10-31 16:33:06 +03:00
levlam
98ff412f7a Use get_channel_full_const in get methods to avoid unneeded getChannelFull requests.
GitOrigin-RevId: 1959c781b6c85667065e38af125a87186746a233
2020-10-31 15:47:40 +03:00
levlam
d28a7245ea Make can_get_channel_message_statistics const to prevent unneeded getChannelFull requests.
GitOrigin-RevId: 90121f149dfa5ec6e586b8932b8507dd25614921
2020-10-31 15:28:55 +03:00
levlam
e27385e9b8 Fix discussion message usage.
GitOrigin-RevId: 52f7c267b29589c751a2acfc5f74dce9950dc801
2020-10-31 15:19:36 +03:00
levlam
38d2fb8e94 Improve updates order.
GitOrigin-RevId: 5a88973c364be4630a7923190958cda47c697678
2020-10-31 14:55:44 +03:00
levlam
ca3315ba06 Add MessagesManager::update_reply_count_by_message and update reply_count on message deletion.
GitOrigin-RevId: 2746c056ae021053587c8b16b50a92ed126f89da
2020-10-31 13:55:53 +03:00
levlam
dd12a34656 Simplify set_dialog_last_pinned_message_id usage.
GitOrigin-RevId: 62c3e3e8b5bd0260bc059ba92b6bc400bb9b3eda
2020-10-31 13:13:31 +03:00
levlam
7010c7c6ea Fix dropping pending updates after receiving empty difference.
GitOrigin-RevId: b8a7a2298191123b0e5be818ebae52c52998eab0
2020-10-31 12:01:13 +03:00
levlam
a4a28c511b Move logging from ERROR to WARNING.
GitOrigin-RevId: f46e811f84315f014625ea532459fa714432a884
2020-10-31 11:58:06 +03:00
levlam
1fcd6b54ed Improve messageProximityAlertTriggered field names.
GitOrigin-RevId: b67708794a18ee954455871cce1084ca047f7f35
2020-10-31 01:38:11 +03:00
levlam
0efc6ee617 Reload all sticker sets once to drop legacy photo locations.
GitOrigin-RevId: 2ab5e1ba035ea3946a733a06e44cc1f7b327cd36
2020-10-31 01:32:18 +03:00
levlam
b433905bb0 Increase version to 1.6.10.
GitOrigin-RevId: 5b448003c89f845050293a9fceb6a89cd8399ca7
2020-10-30 21:09:08 +03:00
levlam
ed24ba28df Update last pinned message ID after receiving pinned message search results.
GitOrigin-RevId: 5847782e855561c3f17b8f2a3d3a3feb3fc096d9
2020-10-30 18:50:45 +03:00
levlam
e97d547edf Add author_signature to message forward origin.
GitOrigin-RevId: df1046ec0a30e2ccf43867d6dcc4558b0212c0c6
2020-10-30 18:24:17 +03:00
levlam
e8d97ebbcd Apply users and chats from channels.getDifference before creating the dialog.
GitOrigin-RevId: 5ee65a1b7c199daf38d94a7d93b8adfb6532703d
2020-10-30 18:09:57 +03:00
levlam
e5133445d3 Increase maximum allowed horizontal accuracy to 1500.
GitOrigin-RevId: a60447f8aa35253f6e04f1cb77d45643bb64c389
2020-10-30 17:01:06 +03:00
levlam
3f23a06473 Prettify query logging.
GitOrigin-RevId: 1e6e7285dab732e95593119d2e1e3f13f0d8bb15
2020-10-30 16:46:57 +03:00
levlam
f42532e9ed Fix CHECK.
GitOrigin-RevId: b6b51f3e78f2f6c8e8a60df6f862ee3ef647e66a
2020-10-30 16:21:34 +03:00