Commit Graph

2288 Commits

Author SHA1 Message Date
levlam
936a84c025 Update to layer 99. Add support for ChatListType.
GitOrigin-RevId: fdd5de60e479fa9a72975bee8e3cb911f390ec01
2019-08-19 04:51:03 +03:00
levlam
110b3d5832 Add get_simple_config_firebase_firestore.
GitOrigin-RevId: 2c89f7667148f601d16aba01068ebb4f74bd12f8
2019-11-19 19:26:39 +03:00
levlam
4ce54818a3 Add get_simple_config_firebase_realtime.
GitOrigin-RevId: 04b3aedcbe9ec1985f69cced34b0d890eedcf934
2019-11-19 19:01:12 +03:00
levlam
d462e21d20 Simplify get_simple_config_dns.
GitOrigin-RevId: 4488e1241c2678199e173deb5548d904ec5e6afd
2019-11-19 18:12:51 +03:00
levlam
9fb3cee419 Add get_simple_config_firebase_remote_config.
GitOrigin-RevId: e96d20dfd6aba3ce981fc88ec7533852870f8311
2019-11-19 17:58:24 +03:00
levlam
22c88fab89 Reregister device after terminate all sessions.
GitOrigin-RevId: 131a94d04370ccd3ed96ec8f5945ff07df4a67fd
2019-11-17 22:43:10 +03:00
levlam
c1a201fd7f Use main remote location for upload.
GitOrigin-RevId: 1a77b73bf73608e219cbf2a0d888f33b0c406a80
2019-11-17 22:41:28 +03:00
levlam
15cdfb974a Ignore invalid UTF-8 hashtags from broken database.
GitOrigin-RevId: 085b83bd70c13d5b4f4d846ca0dba6e9c23b59a7
2019-11-17 19:30:53 +03:00
levlam
35bf5e2f32 Add more logging.
GitOrigin-RevId: 4e84e89517d3e28911f8d876fe3ccc6ef741c4f5
2019-11-17 01:43:47 +03:00
levlam
bda15f31e4 Do not try to force file reupload too often.
GitOrigin-RevId: 533e25add08f00daf06c1ce1e42a111c930ef41e
2019-11-16 20:09:27 +03:00
levlam
afca63a4f4 Fix minithumbnail dimensions.
GitOrigin-RevId: cd854007a759af2ef7a6ab71c45e5c9ed020d2f5
2019-11-13 23:00:49 +03:00
levlam
7de4f8b078 Do not add messages sent via bot to list of active live locations.
GitOrigin-RevId: fdd83122b83f2b20d2ab460c9d27dcf320a53c4d
2019-11-05 19:20:13 +03:00
levlam
a0fa744735 Make FileEncryptionKey fields private.
GitOrigin-RevId: 06ec5e24b9154e1830fd3d37b833df60609c675a
2019-10-24 20:17:37 +03:00
levlam
0d375251a4 Fix logging of FileEncryptionKey by @chipitsine and cppcheck.
GitOrigin-RevId: 6292860a243435541a6c9632d0c214c495cd9835
2019-10-24 20:09:09 +03:00
levlam
ac60ef4c5a Do not allow recursive call to set_dialog_pinned_message_notification.
GitOrigin-RevId: 91db05f21ec2feb322efa9c9be5aa76b9f49ad3f
2019-10-23 21:53:26 +03:00
levlam
b25e039a99 Fix running getDifference from read_history_inbox.
GitOrigin-RevId: d756bf323db13a40f7e09f070d522ab61549b489
2019-10-22 20:15:40 +03:00
levlam
e37f7d1537 Add td::remove_if.
GitOrigin-RevId: d94733cbf251e8fc182c106f4cbf0cc84c0675a5
2019-10-20 01:51:17 +03:00
levlam
ee87414bab Fix misprints.
GitOrigin-RevId: e21e784c076005538ee889a61b12b8876567da13
2019-10-19 21:20:16 +03:00
levlam
3dc2716ee2 Drop invalid last_new_message_id.
GitOrigin-RevId: f9609a3cf52214f8d8f76b201afcd6fbd74ee1be
2019-10-18 17:43:31 +03:00
levlam
8f58e11020 Replace emptiness CHECK with explicit clear().
GitOrigin-RevId: 65a2a6b5c3f67845140a9d2182a1859bceaa9d7b
2019-10-18 17:27:15 +03:00
levlam
c597cfd121 Delete pending notifications in remove_all_dialog_notifications and remove_message_dialog_notifications.
GitOrigin-RevId: 913c5accbe16d6a1f455eb2db67c0453fcde6e7a
2019-10-18 17:21:00 +03:00
levlam
066407d7dd Pass from_mentions instead of NotificationGroup to remove_all_dialog_notifications.
GitOrigin-RevId: bd7d084bdf6cbfe0dacfc40e7d51d6fc8a8eac18
2019-10-18 17:02:34 +03:00
levlam
adbef28cd7 tg_cli: simplify as_input_thumbnail.
GitOrigin-RevId: cb856d9b71e24c026ddbca6f50c67222ed4b78bc
2019-10-18 16:03:42 +03:00
levlam
30250216e8 Never log updateReadHistoryInbox with 0 max_message_id.
GitOrigin-RevId: f4b3ca895e39f55318054268329d26b7932e41c3
2019-10-18 15:57:16 +03:00
levlam
3c880b13f7 Fix reuploading of generated files and thumbnail with invalid file_references.
GitOrigin-RevId: caf0df74bde926001188f867f6f1a098834da32e
2019-10-18 04:31:28 +03:00
levlam
6b001fedd9 Add basic protectiong from cyclic successful file reference repair.
GitOrigin-RevId: f0d3ef24dc95ed1f5ed06801abc435ee40c80f01
2019-10-18 04:30:49 +03:00
levlam
9fa88eb0ec Remove user/channel debug_source.
GitOrigin-RevId: a9d8fc3841d04e448ee6ef9a34b084d1d302257c
2019-10-18 01:17:46 +03:00
levlam
bee924a7a2 tg_cli: more arguments trim.
GitOrigin-RevId: ac437108a47582b7a697113b93f26569f47e4d3c
2019-10-08 18:19:35 +03:00
levlam
464deb816e tg_cli; add svttl and improve spttl.
GitOrigin-RevId: dfc8c81ce2ec65ddb5fd07863e57b6187856a59b
2019-10-08 01:01:01 +03:00
levlam
c91efe472b Add force to another overload of get_input_media.
GitOrigin-RevId: fc64a9f6ee08e5432c6475f8b1493bcd2524ae4f
2019-10-09 02:59:25 +03:00
levlam
ebcc1d0dc3 Strip empty characters in file names.
GitOrigin-RevId: 896c899c9d0893b467844b5640d8f65b240bc759
2019-10-04 18:00:51 +03:00
levlam
407f3d1c1a Add td_api::richTextUrl.is_cached.
GitOrigin-RevId: fb40f341fc6c621727a97e84cbc9fe6af2e8ad96
2019-10-03 23:40:58 +03:00
levlam
dcfa6d1ea6 Improve logging on failed CHECK.
GitOrigin-RevId: 34a9fdad6499503edca51c4c3136731d2c8acb8a
2019-10-03 23:23:38 +03:00
levlam
ef924d218d Better logging on invalid database data.
GitOrigin-RevId: f474f0493d701758836c3c0345ff8697b5be9ce5
2019-10-03 23:04:33 +03:00
levlam
9ed550bdb1 Use get_simple_config_mozilla_dns.
GitOrigin-RevId: 5b1605e5ca53485130dd12d727352f6e4682ffec
2019-10-03 22:28:01 +03:00
levlam
2e0949c10a Add get_simple_config_mozilla_dns.
GitOrigin-RevId: 53ffccf02ebd41d4b11146ae3b0206f6fa5db5aa
2019-10-03 22:20:15 +03:00
levlam
0e2898b81e Add td_api::notification.is_silent.
GitOrigin-RevId: bab4a0c401913177b9fc794ee510c912be3f2727
2019-10-03 21:58:50 +03:00
levlam
c74263ce3d Better log message when database can't be opened.
GitOrigin-RevId: d5aeadb0e89fb1c9391721f716801bc239b6d9b0
2019-10-03 20:38:47 +03:00
levlam
0167d9c3a6 Remove StorageManager::gc_parameters_ local variable.
GitOrigin-RevId: 7cb3e4595a7afe9681c0a6dc05249965b3243d4c
2019-10-03 19:30:31 +03:00
levlam
dcf3db3e98 Fix parse_sticker_set with an invalid sticker.
GitOrigin-RevId: 66734835e21c35fb3978f2311b9d582d1b65f0e6
2019-10-03 18:16:11 +03:00
levlam
61c883b971 Add check for max_unavailable_message_id validness.
GitOrigin-RevId: f5b32a7d3b122981456d5d63f40513526a633d06
2019-10-03 18:09:21 +03:00
levlam
a2cdc45fc0 Use unique file_id in UpdateProfilePhotoQuery.
GitOrigin-RevId: 80840de6532ef75bd1a2447d81cf4a6ad0e08e46
2019-10-03 17:45:11 +03:00
levlam
64f813fffb Add more logging.
GitOrigin-RevId: 1485d6332d7440fd63db756bfa8b250fe50b1cab
2019-10-03 17:21:05 +03:00
levlam
b20bd84e22 Do not update local online status for support accounts.
GitOrigin-RevId: b4bce82b6aaa160a2f7fc2897c44e20b05c2030a
2019-10-03 16:44:49 +03:00
levlam
5f94662807 Always treat pins as mentions.
GitOrigin-RevId: 8a573c3b67c198e246d81a1ff64b5a702b45fac3
2019-09-30 23:29:56 +03:00
levlam
fff1b6d4b5 Add input_media debug.
GitOrigin-RevId: f4285e14666cd4707e8737b8d2ae69fccdce0151
2019-09-30 18:02:52 +03:00
levlam
b282853c97 Ignore corrupted web pages loaded from database.
GitOrigin-RevId: 1233ad086176910d3fe6f6cf621d3cbfc36775bb
2019-09-30 15:27:22 +03:00
levlam
0b6c1d226f Update clag-format to the latest (190926/r372920) version.
GitOrigin-RevId: 7861ae8ad28eb1f6a06ff3c6f56eff3f67b1d24c
2019-09-28 05:14:21 +03:00
levlam
b34737a562 Close broken database before destroying.
GitOrigin-RevId: ed3729139c843caba7d54e02d80262d4fccb81ef
2019-09-16 22:01:55 +03:00
levlam
7fdaf3c530 Do not repair participant_count in deactivated chats.
GitOrigin-RevId: 3795e3e3571f4c580b70335470acf826f5b0e492
2019-09-16 03:54:09 +03:00
levlam
f29c4a9ed1 Remove unneded explicit td::.
GitOrigin-RevId: e3888510ce72a55072a11d105311f07b4ba42bbf
2019-09-15 06:19:46 +03:00
levlam
8949e040b8 Do not allow encrypted and web animated stickers.
GitOrigin-RevId: 78ea903caa414056180ed19c7a1a3f3873753b4a
2019-09-15 03:38:20 +03:00
levlam
865ccc7560 Invalidate ChannelFull on updateChannel update.
GitOrigin-RevId: 081f68486d1555ba9cbcd5f954663a55c6551c00
2019-09-15 03:34:05 +03:00
levlam
06039ab496 Comment wrong CHECKs.
GitOrigin-RevId: 2111ac12ea1d7ebe07348457c7a1c962306474ae
2019-09-13 21:35:37 +03:00
levlam
afb034e512 Remove @ya username.
GitOrigin-RevId: 1c5b9d7f07b420c81a28662197ef757dd96dd263
2019-09-13 20:17:22 +03:00
levlam
aa8e1a3ec5 Fix previous commit.
GitOrigin-RevId: 3102c40ce2768544d73fe7c1a6b1308259a0837c
2019-09-27 04:57:42 +03:00
levlam
33d684d684 Represent empty IV cells as null.
GitOrigin-RevId: 2a087121c7a676e95165b72ed09e002c2323ddd8
2019-09-27 03:42:26 +03:00
levlam
17cc3b93f0 Add td_api::pageBlockVoiceNote.
GitOrigin-RevId: 4f5fdd595abba78863cf2e825c492b4ee99a11a3
2019-09-27 03:21:55 +03:00
levlam
79330c3881 Partial ton:// URLs support.
GitOrigin-RevId: eeaaab10574dc636e9de18cc482f2398f6732fa1
2019-09-27 01:03:13 +03:00
levlam
9b0530e704 Update version to 1.5.1.
GitOrigin-RevId: b383c4ce6a534b528aa0903bb1c34e12fd9cfab5
2019-09-27 00:24:16 +03:00
levlam
f03d5d285a Add support for TON wallet.
GitOrigin-RevId: 1f44858add8a08a774ff0360222adaba9e2b9242
2019-09-27 00:21:16 +03:00
levlam
a2429d595c Fix warning.
GitOrigin-RevId: 0b3023fd34de916b60b41ddd8c6af6be153aaeab
2019-09-24 18:18:17 +03:00
levlam
82892f577d Add dc_id and timeout parameters to testProxy.
GitOrigin-RevId: 399efb78e2c82d8ef6f6b854f572e0a6b6a90336
2019-09-23 04:13:42 +03:00
levlam
c03b2396fa Fix MSVC 15.3 warnings.
GitOrigin-RevId: 798de56bef2ea061d996e5bf2feec75f4800c32e
2019-09-08 23:40:30 +03:00
levlam
e2734d4fb6 Update version to 1.5.0.
GitOrigin-RevId: 4fe7ecd3ba5e2a8ba824116b16ddda379a9e3feb
2019-09-08 05:20:42 +03:00
levlam
b52d31e610 Remove unused assignment.
GitOrigin-RevId: dc77bab49db3a5b45ac40b2075fbd8cd3d4d8185
2019-09-08 04:30:14 +03:00
levlam
abb140a714 Minor improvements.
GitOrigin-RevId: a50ba2cc0b47b395d7d7787ad59868d23bf22634
2019-09-08 03:49:16 +03:00
levlam
cb69109ccb Add G() debug.
GitOrigin-RevId: 0ccc0d43c93186add1119fa2d72e8c669cfa6dd3
2019-09-08 03:10:09 +03:00
levlam
55ea23b2fc Remove static functions from NotificationManager.cpp.
GitOrigin-RevId: 326ed290ac673b64ebaa390431c646be57bbd238
2019-09-08 02:27:12 +03:00
levlam
8dbd3bf091 Consider links in captions for Shared URLS.
GitOrigin-RevId: f39f78d64b7d2e64b7b2682f688accbabce2a907
2019-09-08 02:05:55 +03:00
levlam
6cbc02ed1b Minor improvements.
GitOrigin-RevId: 157e77d244b24f3c5af56539d434096f7440e2e8
2019-09-05 18:32:45 +03:00
levlam
2fa2e966c9 Fix saving dialog to database while closing.
GitOrigin-RevId: 2d6ff48ce7587282c12bc0e470e44b1085b46f99
2019-09-05 18:26:42 +03:00
levlam
e7aac1c9b3 Fix misprint.
GitOrigin-RevId: d0af7ebd5e03471dd33b1baf3506b6c72d2518fc
2019-09-04 21:30:27 +03:00
levlam
331a48a898 Fix order of updates applying in secret chats.
GitOrigin-RevId: 3cf1c152c4faf21bc3d1f6cb58fcbce6417623ef
2019-09-04 21:29:27 +03:00
levlam
4d827dbc78 Improve logging.
GitOrigin-RevId: f6535e18bc2e3b65a1def9b787ee5902ff16e5e9
2019-09-04 20:49:24 +03:00
levlam
5b05a6245c Better handling of secret chat push notifiations.
GitOrigin-RevId: 05bf44191339d98d7124ef41bd5bec3fc3ade9f1
2019-09-04 19:17:56 +03:00
levlam
64a77fc9fb Do not prefer animated recent stickers over non-animated.
GitOrigin-RevId: 112145286bd54de5706628bd8ad8d176e5895cf0
2019-09-03 21:41:11 +03:00
levlam
5104759c6a Update private chat permissions when user is received.
GitOrigin-RevId: 3fa3df0aa915130eec167607905b76006dd0b706
2019-09-02 20:32:51 +03:00
levlam
c72ba02d85 Write to the log message when account is banned.
GitOrigin-RevId: 087777440601fc56f9289fc8140497a1553755db
2019-09-02 19:24:50 +03:00
levlam
eeaed834d1 Simplify send_*_phone_code.
GitOrigin-RevId: 72b09f64fab527c8a2363bae72e0e40770f64a83
2019-09-02 18:16:34 +03:00
levlam
ebf9f45eeb Really fix Verify and Confirm for phone number.
GitOrigin-RevId: 1f859c039bdf5a554efa4d328848fafa36c659d4
2019-09-02 18:11:47 +03:00
levlam
0d2df39a2e Silence sendChatAction errors.
GitOrigin-RevId: 138ea490da2a7d59695c58332ac176abeb4efcd9
2019-09-02 17:59:33 +03:00
levlam
a131af270a Do not send typings to channels.
GitOrigin-RevId: c66eb66d3149175114d05222e1cd92de9bc41430
2019-09-02 17:15:33 +03:00
levlam
7ca14d0851 Fix name and expected size of sent files in secret chats.
GitOrigin-RevId: ec2bc60a91ec5f1c7bfc6481a852526a36984962
2019-09-02 04:40:02 +03:00
levlam
926dd7f8f4 Keep photo size type.
GitOrigin-RevId: b07bd8da83b8461d8f0a4314276cc74850c62989
2019-09-02 03:51:41 +03:00
levlam
5bd752da0d Do not log error when closing.
GitOrigin-RevId: 58c6f5a4c0c2bce4f7c9d97992e0a56e45cc0306
2019-08-31 02:52:56 +03:00
levlam
e09979d8ac Increase logevent_id_generation before sending server request.
GitOrigin-RevId: ebb1bdb8b3802b0b2cd6c55c9b85817c219c222a
2019-08-31 02:32:47 +03:00
levlam
6babab76f0 Improve synchronization of unread mentions count.
GitOrigin-RevId: 6fa968ff0e2c2b4865078a275aa5bf1603e70583
2019-08-31 01:56:16 +03:00
levlam
4d72f8c14b Minor fixes.
GitOrigin-RevId: cc03c7e7a507fab2308495ea23f8ef9630a8142f
2019-08-30 04:56:01 +03:00
levlam
e18bce69a1 Register device after every restart.
GitOrigin-RevId: 2eed6eafb1f38a636603b16d400cc4f7505f8a0a
2019-08-29 03:40:18 +03:00
levlam
39e8379a86 Increase version to 1.4.2.
GitOrigin-RevId: 0b3dc7e227f564e4af4fd246cebfdc72353e48ec
2019-08-29 03:30:10 +03:00
levlam
b9ee9d0cf0 Use send_closure_later in timeout_callback just in case.
GitOrigin-RevId: ee1cee46052af875886477583cfc859503e73bcc
2019-08-29 03:16:49 +03:00
levlam
cea15d975a Use send_closure_later in on_user_online_timeout_callback to avoid accidental access to MultiTimoeut.
GitOrigin-RevId: b488a006dcbe17d661e18a6e578c08cd070b84ea
2019-08-29 02:17:52 +03:00
levlam
787e370002 Do not create empty PendingMessageGroupSend to not try to use it in on_upload_message_media_finished.
GitOrigin-RevId: 5210a6072b566d270ec1f3b65183d153adf47ea6
2019-08-28 03:39:47 +03:00
levlam
607f99e40d Fix sending games via bot.
GitOrigin-RevId: 41f71dba07c0d441660650a0f8a01c3f4a94d778
2019-08-28 03:01:15 +03:00
levlam
95c0b286a5 Merge always 'i' photo size to repair access_hash and file_reference.
GitOrigin-RevId: 0373f4ab6c13cc03d94a839d1191c50f8163618d
2019-08-28 02:13:47 +03:00
levlam
31e26a7004 Delete message files in all chats.
GitOrigin-RevId: 34981a807b217e657ff656940117ae9b38936fb9
2019-08-28 00:43:48 +03:00
levlam
f27dac69e1 Fix JSON spelling.
GitOrigin-RevId: ea2602f1e9a808ff1e28eb289936f9608aae7517
2019-08-26 05:06:00 +03:00
levlam
197acde4d4 Fix first letter case in error messages.
GitOrigin-RevId: 004d1535d3fb04e51a088ad43f2386dea05b7c9c
2019-08-26 04:53:22 +03:00
levlam
eaca53604a Fix MTProto-proxy usage with bots.
GitOrigin-RevId: ed82547b018fe34c5da6a9b3a98ecb9ed7b39049
2019-08-23 19:38:56 +03:00