Commit Graph

1100 Commits

Author SHA1 Message Date
levlam
9328c20fcc Return only key's suffix in prefix_get.
GitOrigin-RevId: 4e2043356fc69741a881407146fd4e9ca385b258
2020-04-23 20:27:46 +03:00
levlam
9be242f877 Rename get_pinned_dialogs to get_pinned_dialog_ids.
GitOrigin-RevId: 3673c26a7156f98c3078cfd13d6c0a414e495718
2020-04-23 02:35:56 +03:00
levlam
3a622cccaf Remove limit on number of preloaded chats.
GitOrigin-RevId: 515a47d04641e23bc8d5f72bbf01568d83dde96d
2020-04-23 02:33:29 +03:00
levlam
392b62e40b Correctly add sponsored chat to total chat count.
GitOrigin-RevId: 94cd41796d06b4a70902b4e424c181bbca740639
2020-04-23 02:31:16 +03:00
levlam
6c9659dec4 Fix deletion of unreachable from the end too new server messages in set_dialog_last_new_message_id.
GitOrigin-RevId: fd43badbfd5745eb3ad26eca5f1873d2ffc2bcb2
2020-04-22 17:52:51 +03:00
levlam
356051f59d Do not warn on attaching new message to the next yet unsent message. Could happen when replying a message received through getMessage.
GitOrigin-RevId: c4c77ae81eab08cce855ba32a5756477340b66af
2020-04-22 17:11:29 +03:00
levlam
52ea0998ec Allow to pass multiple input language codes in searchEmojis.
GitOrigin-RevId: 0fb99694447f3ac02063eb9c03af2c2b3dfc267e
2020-04-22 15:17:53 +03:00
levlam
226cf0e6dc Do not save yet unsent message IDs as deleted message IDs.
GitOrigin-RevId: 459bc8dab615ae509da8cd2ed23832362f37f41b
2020-04-22 14:22:33 +03:00
levlam
80fb2baf6e Drop message random_id from cache after the message is deleted.
GitOrigin-RevId: 75985135435dafa0c4de4e7fcafa25490a25d354
2020-04-22 13:36:03 +03:00
levlam
1c605b7e52 Remove debug of being sent messages.
GitOrigin-RevId: cb191e904f2b392562f927c8b2ac28036176ba96
2020-04-22 12:48:52 +03:00
levlam
acf189bb51 Do not save failed to send message ids for bots.
GitOrigin-RevId: 0cc447dac85dc1ad8d61b60a53ebea027ce96d8f
2020-04-22 12:28:17 +03:00
levlam
4afc32d9f9 Do not save yet_unsent_message_id to persistent_message_id correspondence for bots.
GitOrigin-RevId: 850f7ac5fc0bb348985b02c46812a32b64018cc5
2020-04-22 12:16:52 +03:00
levlam
379bff13cb Remove time limit on channel posts editing.
GitOrigin-RevId: 033ba6c0622739e89721ab6f5a9ec4e3a178e866
2020-04-21 23:27:48 +03:00
levlam
e2998f79b6 Allow to delete dice just for self.
GitOrigin-RevId: 5ab4db809bc33c67f99c95f2a0267e3be84b59ac
2020-04-21 15:39:36 +03:00
levlam
35e421a23d Do not apply expired message content early.
GitOrigin-RevId: e49ba509e615a0f088b5aba7f03d722248ae9af0
2020-04-21 01:39:44 +03:00
levlam
67565c9c34 Allow to delete local and scheduled messages.
GitOrigin-RevId: 5cc1fbe54fb0ea55fbc46e1f7ed1b1b138fd1edd
2020-04-20 00:59:09 +03:00
levlam
87afb93b93 Fix some ID spelling.
GitOrigin-RevId: cdd8cdb93696c690cf7bdb9b2df175bb926a7510
2020-04-19 13:45:37 +03:00
levlam
5da08f8bb1 Remove unsupported include_sponsored_chat_to_unread_count option.
GitOrigin-RevId: dcedd9c37b8e5453590e092a3651456a4c62ad1c
2020-04-14 00:20:04 +03:00
levlam
65c6ac69eb Add get_dialog_public_order overload from DialogList.
GitOrigin-RevId: 9ac90c9f041a756b4adbd1c9e632f97cf43edf66
2020-04-13 04:48:21 +03:00
levlam
6dd455449e Use folder_id in MessagesManager::get_dialog_public_order.
GitOrigin-RevId: 70d6b38ceec67bdb3b0439454a9637f0d6178ee2
2020-04-13 01:39:47 +03:00
levlam
737afc8c7e Move get_message logging to INFO.
GitOrigin-RevId: dd86fd3ca2d535fd3d6f2d2ce24cd69dbe5bb534
2020-04-11 01:08:55 +03:00
levlam
c044770022 Simplify messages.sendMedia creation.
GitOrigin-RevId: 8a8ad7b0e88e459f30104d2f6dd6084ddbac8a36
2020-04-10 04:16:50 +03:00
levlam
b3594169b5 Fix MessagesManager::update_sent_message_contents.
GitOrigin-RevId: 5265e6d357109065790d6b6e85ddee09d25b025d
2020-04-10 02:38:56 +03:00
levlam
00a70b466d Do not add file source from self-destructing messages.
GitOrigin-RevId: 5ac703d188ec532a52efa8549ee8c7e63a78a78b
2020-04-09 18:43:27 +03:00
levlam
1d8004d279 Add force to get_user_full.
GitOrigin-RevId: 182ab8a99142a12c51662ee0928480f6a3e03f91
2020-04-07 03:23:53 +03:00
levlam
9df4c5dcf9 Silence expected error.
GitOrigin-RevId: 1a9c9390b385e63ad91807ee6ed02e088b060154
2020-04-07 03:06:25 +03:00
levlam
3f6485fb39 Require ability to send stickers for dice.
GitOrigin-RevId: 61d61df0d56653d366ef82a86adb6e92046b8362
2020-04-04 02:45:36 +03:00
levlam
1cb2141fee Add force to get_channel_full.
GitOrigin-RevId: 76bc8e90bc5aba1443739199800074bf52e7d8d3
2020-04-02 04:33:04 +03:00
levlam
d8f18bd694 Add MessagesManager::add_sponsored_dialog.
GitOrigin-RevId: 8d786b88b5d2e551988aebb164d787bff3f4ea5b
2020-04-02 03:03:17 +03:00
levlam
b99f88ed77 Move logging to a better place.
GitOrigin-RevId: a61a8c10179635477447eee7d222b3906545254c
2020-04-02 01:05:57 +03:00
levlam
679bc7c84b Adjust first_database_message_id after receiving messages from database.
GitOrigin-RevId: 2b27f0eebf0fd0f30fb1231df50ee808933a6f21
2020-04-02 00:15:23 +03:00
levlam
c8345a6131 Drop database message IDs if failed to load messages from the database.
GitOrigin-RevId: 269e0e46b896d37188326275323f521261d727c5
2020-04-01 21:36:09 +03:00
levlam
84cd8a8e3c Load only 10 messages from database when repairing last message.
GitOrigin-RevId: f48e3418190b5253b53dfadab55a97a3ae61185a
2020-04-01 20:35:44 +03:00
levlam
09f2dc8e9d Improve error message.
GitOrigin-RevId: a0da9ac936aad83d95f1f13a18560728f9bf5ba7
2020-03-31 02:21:26 +03:00
levlam
62a9eac907 Suppress logging of MESSAGE_DELETE_FORBIDDEN errors.
GitOrigin-RevId: f131ae1323ba35367198f7b3e45f653bf84c29dd
2020-03-31 02:17:57 +03:00
levlam
409fd70c15 Silence expected reply markup change warnings.
GitOrigin-RevId: abbc161a87e09cabebeadd13b50399f266d8fffc
2020-03-31 01:19:10 +03:00
levlam
bcc8dbc158 Use Global::is_expected_error whenever appropriate.
GitOrigin-RevId: aba8ee6e3dc1ab6e680a5ae10f6c3d217ab0a8dc
2020-03-31 00:35:58 +03:00
levlam
4cfb7c56d2 Add Global::is_expected_error.
GitOrigin-RevId: afa4741a772ad99844195a583ee40d3fc50fef4f
2020-03-31 00:22:52 +03:00
levlam
f432d403e7 Remove logging of some expected errors.
GitOrigin-RevId: 2a6e4704d57743da1dba740dc9333cc649c679ee
2020-03-31 00:02:43 +03:00
levlam
7932ea08eb Invalidate list of poll voters if full list size is different from the expected total count.
GitOrigin-RevId: 544e9c4ae8b76bb10399c8370269940eb45a4684
2020-03-30 22:43:04 +03:00
levlam
e8e546a721 Fix retries in getBasicGroupFullInfo.
GitOrigin-RevId: acd566f171998c130f0e3a0544b11e6430148f07
2020-03-30 22:20:34 +03:00
levlam
a599557c9d Support some updates before authorization.
GitOrigin-RevId: 21bd7a06bf41ebc81005b35a0695988d82e6b4a3
2020-03-30 01:48:44 +03:00
levlam
12a6bc9c04 Rename Die to Dice.
GitOrigin-RevId: 16b7b2915163103891d9813e034762fb6a8f6bff
2020-03-30 00:34:37 +03:00
levlam
e1ff669682 Add support for die messages.
GitOrigin-RevId: 2ce7260b01ebe12599831df785ec6d777ddbd10e
2020-03-14 19:56:39 +03:00
levlam
b89034d78b Fix disable_web_page_preview flag of copied messages.
GitOrigin-RevId: 7b4c01436ab4bb8375307e57dd7b702cea5c289f
2020-03-28 02:35:07 +03:00
levlam
8e666c2d7a Add has_message_content_web_page.
GitOrigin-RevId: 3bc382c77754a6a517616235d7b2572cfdfda607
2020-03-28 01:49:59 +03:00
levlam
a0a446f987 Correctly send updateChatOrder when sponsored chat changes.
GitOrigin-RevId: 0e2184406b689df860926817d4b4966869a5d05d
2020-03-26 19:04:48 +03:00
levlam
302485d673 Repair dialog action bar with delay to not receive outdated data.
GitOrigin-RevId: 74c3cb3ae95e5204153b91fd220b3e6b62bd87df
2020-03-24 03:47:33 +03:00
levlam
f0a8af3b2d Ignore notifications about messages, which can't be added to the dialog.
GitOrigin-RevId: 6e5780e843760b4ff39aee751249455b9d926b01
2020-03-24 01:49:04 +03:00
levlam
1310aa7f2c Improve logging.
GitOrigin-RevId: d1c9c742981fa37ebe691aa569e8b6a9fc50d3c1
2020-03-24 01:36:43 +03:00