Commit Graph

3561 Commits

Author SHA1 Message Date
levlam
4f005e3356 Add MessagesManager::get_input_peer_force for offset_peer.
GitOrigin-RevId: 45ec6bb84f679c2b843f7487105069c3aa64341f
2020-06-20 03:45:25 +03:00
levlam
4ae7bc23dc Add two ways for OS version detection on Darwin.
GitOrigin-RevId: cddea795e5d289b1fe15d88fc99db51e42c7138e
2020-06-20 02:39:33 +03:00
levlam
47229e1dab Add expected_non_option_count to OptionParser.
GitOrigin-RevId: 41bf15d9bddf1673c0c421ef9e5108a5678f9842
2020-06-19 06:00:01 +03:00
levlam
251318d2da Add OptionParser::add_check.
GitOrigin-RevId: dbf50403ba264ddf04b50197f0b54500c8f761ce
2020-06-19 05:50:18 +03:00
levlam
5aa609535e Simplify support for unchecked options in OptionParser.
GitOrigin-RevId: 5a913944b5a6cfecdfb96287e2c670be8ca18547
2020-06-19 04:44:38 +03:00
levlam
0877d7f716 Automatically detect operating system version.
GitOrigin-RevId: d693799fdbfe4919da5a70c141709f2db93063d7
2020-06-19 03:45:24 +03:00
levlam
b70b23509b Improve updateUsersNearby description.
GitOrigin-RevId: 92538b51a8f8d6c2a01c62a81589348838200253
2020-06-18 21:07:40 +03:00
levlam
0275ecdcbc Fix "Try to" usages.
GitOrigin-RevId: 4ff6d26737f67180a1e9a1289f7f7fb428828b08
2020-06-18 05:02:18 +03:00
levlam
10c3cc2a51 Improve logging.
GitOrigin-RevId: d724bc73494d5ad5f19bc5d0e87c6bdc361183ee
2020-06-18 03:49:31 +03:00
levlam
448e8e0186 Fix connecting_since_ initialization.
GitOrigin-RevId: 0623c909eb05c6144b9443f1f287ddd8eafd874c
2020-06-18 02:42:01 +03:00
levlam
20099b730e Improve logging.
GitOrigin-RevId: 0740f7fc674e80a6be76f8cc8c847a22a0b6be90
2020-06-17 23:57:23 +03:00
levlam
4f8fd1781d Prettify OptionParser usage printing.
GitOrigin-RevId: f0b7c833e91d9eea49483bb93124babc190fa670
2020-06-17 06:09:53 +03:00
levlam
ce137620f5 Improve logging to PLAIN.
GitOrigin-RevId: 5fd64a3599e599a7ae27eecc284f0cd898db8aca
2020-06-17 05:51:36 +03:00
levlam
a7fa10718f tg_cli: use OptionParser.
GitOrigin-RevId: c2d73fcc79028d1dce9b951ad02ae880c114c1e0
2020-06-17 05:30:14 +03:00
levlam
c1688ca081 Use proper bit function.
GitOrigin-RevId: c0254cc33fce40682b8609f5fb73b23a4ab1927b
2020-06-17 04:16:59 +03:00
levlam
c46910d75f Add portable option parser.
GitOrigin-RevId: 0d4f7e2f5bec4826e1c12e3aa1aee642fcf6da07
2020-06-17 03:04:36 +03:00
levlam
96b18f3ad8 Fix loading empty list of pinned chats from binlog.
GitOrigin-RevId: 21f90fe3f9f869fe4b4fdab228a5bae1975728ae
2020-06-16 15:21:37 +03:00
levlam
3442a88413 Unify constant names style.
GitOrigin-RevId: 6e4475366b94cea6ab0331d57f254311490bdee2
2020-06-16 05:10:16 +03:00
levlam
44cd25afae Force data loading on MESSAGE_MUTED.
GitOrigin-RevId: 1911c676b7c25fe4334c2ef1f1dc2395e39b27f9
2020-06-16 00:25:12 +03:00
levlam
a5b0f205d1 Remove Promise debug.
GitOrigin-RevId: b248c369954ae5ddd81437e4a2fdde245544d267
2020-06-15 04:59:08 +03:00
levlam
0cf4fea1ff Remove enum usages for static constants creation.
GitOrigin-RevId: 2a88fd2cd961398a09403fe35a15ae56372a44f8
2020-06-15 04:52:56 +03:00
levlam
ea4841a37c Unify enum constant name style.
GitOrigin-RevId: 2e36eef9b54c23da0d1bc9beb7e07af8835f702d
2020-06-15 04:23:47 +03:00
levlam
480f826d16 Do not use C-style casts.
GitOrigin-RevId: 6187bc8f4837fd40aba7ef613e09ecb93e3cf951
2020-06-14 05:27:49 +03:00
levlam
18b8e87e74 Support cpu_stat on Windows.
GitOrigin-RevId: df9a2fa6d53fb1c19cd30f2da3354bc23b2f3aee
2020-06-14 04:01:02 +03:00
levlam
6b1c2f797d Add mem_stat support on Windows.
GitOrigin-RevId: cf63e7fe53a00f2fa116472ed12f73492ad8bf29
2020-06-14 02:31:57 +03:00
levlam
2ed9cb3b75 Minor fixes.
GitOrigin-RevId: ce9058c2075281697cc41de2ab970dd11e189f77
2020-06-13 05:13:11 +03:00
levlam
c7bc1d1908 Fix strange clang CE.
GitOrigin-RevId: 82960c49e63d6d48d181bdf42e009930c60783de
2020-06-13 04:43:07 +03:00
Arseny Smirnov
541f15bd68 files: better debug message in 'Cycle in database' error
GitOrigin-RevId: 8817236d9a4a628468663c68f48f8990a2317f96
2020-06-09 17:04:47 +03:00
levlam
8a118ec305 Add PingProxy actor name.
GitOrigin-RevId: b539817bad2d706df3391619cd2c81324b8dc686
2020-06-10 20:34:45 +03:00
levlam
44689f81ff Minor improvements.
GitOrigin-RevId: 835275f0146586e4de5e18e9f01be29bb72ddf31
2020-06-10 03:42:00 +03:00
levlam
c921bcc5ed Improve NetQuery public field names.
GitOrigin-RevId: cfa0dbd98c1b03e4e86d62fc6486fcf90e72ef25
2020-06-10 02:44:54 +03:00
levlam
1e6bdbb7a5 Improve NetQueryDebug field names.
GitOrigin-RevId: 56c8c1804e9962caceda0105591cfd16446cd56c
2020-06-10 02:03:09 +03:00
levlam
fcb7a51eb0 Remove global net_query_list_.
GitOrigin-RevId: 345564fa64a1a6abe6e936713ab05c5c16e4a723
2020-06-10 01:47:17 +03:00
levlam
2d22f4d13e Minor improvements.
GitOrigin-RevId: e86b66d0cd5b78a02ce401c40a2c2fffc1bb5a3c
2020-06-10 01:38:00 +03:00
Arseny Smirnov
99fa220ae5 NetQuery: thread safe dump_pending_network_queries
GitOrigin-RevId: 43650ab11c3ca881ae7ee1f768353ce90f094da7
2019-08-16 14:57:41 +03:00
levlam
cd451b7c45 Add List::init_from.
GitOrigin-RevId: 17a6f374ff0b568c6e2d056053539fb2947f22d3
2020-06-09 17:18:59 +03:00
Arseny Smirnov
e8dba312fe secret: fix infinity loop for non-rewritable queries during flood control errors
GitOrigin-RevId: 8f0e3d0a402426c22760074b0bbdf144401f353f
2020-06-09 14:34:48 +03:00
levlam
ab854dac52 Update supergroup.member_count documentation.
GitOrigin-RevId: 138edda0f73f2fa4101cb5faa4357b5ad9560e10
2020-06-09 02:04:06 +03:00
levlam
6ed1a04cf1 Remove remained TON integration methods.
GitOrigin-RevId: 5d2045602cc31fb24225b604b11dacee88a1b65e
2020-06-08 02:12:57 +03:00
levlam
71ec8cc655 Send updateChatFilters for empty list of chat filters after logging in.
GitOrigin-RevId: 18176b0c9bd08a1552189bb35eb46a982a33732d
2020-06-08 01:22:59 +03:00
levlam
eb9efdcba1 Fix edit_dialog_filter.
GitOrigin-RevId: 43043c6b0e054341d6c7c69e9c0dff7440224801
2020-06-07 23:59:16 +03:00
levlam
41d3a4dc33 Add disable_get_dialog_filter_ and more checks that bots doesn't use filters.
GitOrigin-RevId: a9806876ab714ea145dc0ddfd37270ca24e474ac
2020-06-07 23:45:11 +03:00
levlam
0b46b93bc8 Add MessagesManager::do_update_list_last_dialog_date.
GitOrigin-RevId: 337bcc66893ef8c47224d77d5ab54d841936c836
2020-06-07 23:22:33 +03:00
levlam
135be34b0f Add MessagesManager::do_update_list_last_pinned_dialog_date.
GitOrigin-RevId: 9059bce326b65d2b7d5b260fdb7fcb52918ba072
2020-06-07 23:07:46 +03:00
levlam
1e53b71532 Better createChatFilter/editChatFilter return type.
GitOrigin-RevId: 7c9d51add4bc3e2e7bfd92483b2daad83209503b
2020-06-07 22:16:30 +03:00
levlam
deb006416b Add DialogFilter::get_chat_filter_info_object.
GitOrigin-RevId: e61ce8a03c53ee052283abf272edf11a9aaa6564
2020-06-07 21:51:21 +03:00
levlam
415e234f3c Fix include.
GitOrigin-RevId: 8ccca04a6d304cbbafc7e2da2be60b37306b6aba
2020-06-07 20:13:33 +03:00
levlam
b1419f9de5 Fix some includes.
GitOrigin-RevId: f4b44d2e91ca72b6090d7f1f35673e8268723241
2020-06-07 18:14:52 +03:00
levlam
275150b67f Load pinned dialogs if needed in getChats.
GitOrigin-RevId: 753be1d7a3b1009935bb17187e8ee971a327606c
2020-06-07 00:41:18 +03:00
levlam
b7a403f8c5 Immediately reload dialog filters after restart if ignore background updates.
GitOrigin-RevId: 254584dcd936425006b37753ae796503d0342957
2020-06-06 23:29:08 +03:00
levlam
89ca6f6c51 Do not save pinned dialogs to binlog if there is no message database.
GitOrigin-RevId: 2d3de7cc40f471338bd95a5f72ce4f6b8750c61b
2020-06-06 23:22:12 +03:00
levlam
a87b1b4b75 Return parallel first chat list loading.
GitOrigin-RevId: 236bbe8ed898f8ef1dae2add8998a78e4ec1b5f7
2020-06-06 23:20:04 +03:00
levlam
de6d5359ed Use #pragma managed(push, off) around unmanaged includes in managed code.
GitOrigin-RevId: 1b8944dfa23e38f675aec0f25d78644baa27ab84
2020-06-06 22:51:45 +03:00
levlam
b5b1c4c3a6 Fix loading of pinned dialogs.
GitOrigin-RevId: 1ee93b98a10d5f24899d0793e5c9ce1bf3807a85
2020-06-06 22:41:03 +03:00
levlam
2433e68d38 Improve logging.
GitOrigin-RevId: 39c10ac2041467967de93aa94fc5ab8315720cf6
2020-06-06 22:38:47 +03:00
levlam
c67816454f Fix requestQrCodeAuthentication documentation.
GitOrigin-RevId: 788bd942672d94baf6937f4b1d039e687b8a98b7
2020-06-06 17:48:42 +03:00
levlam
760005df5b Change minimum chunk size of poll voters to 10.
GitOrigin-RevId: a1789ac229021d183c9d800fbfebf16c521be11c
2020-06-06 02:30:06 +03:00
levlam
e046e2ced4 Improve need_dialog_in_filter behavior.
GitOrigin-RevId: 56ccaa30c748e1ac4c5850185f0682c61556b17e
2020-06-06 00:53:13 +03:00
levlam
23df5601fe Fix tdweb CE.
GitOrigin-RevId: 06d34855850e771c6aa6bca756dc8d1f4c700d09
2020-06-05 16:43:36 +03:00
levlam
88f6e483fe Fix warning.
GitOrigin-RevId: 601d5141c123ee4928ea309b1846511fcf6d6b62
2020-06-05 08:16:38 +03:00
levlam
8e084a5b43 Do not add animations with stickers to saved animations automatically.
GitOrigin-RevId: c3220224c091ce59fadc519634d6a73933ed3a32
2020-06-05 07:26:26 +03:00
levlam
e14601e878 Process errors for dialog list loading.
GitOrigin-RevId: ecd7b6fe7f0686c1c98aa6896e86b9de5c8baee1
2020-06-05 07:21:02 +03:00
levlam
c32878495e Continue dialog list loading from server if needed.
GitOrigin-RevId: 28709a473fcbd72f42b3b4322ab43c4d571c67a1
2020-06-05 06:57:36 +03:00
levlam
f47a287bf8 Load dialog filters without database.
GitOrigin-RevId: 2fdeaa9bfc700a44b5c76001dadea2b922a80d51
2020-06-05 04:36:46 +03:00
levlam
0e0b7d1bb7 Improve error messages.
GitOrigin-RevId: 054f148623cdf23b05c9594ed27d532b42420877
2020-06-05 04:13:55 +03:00
levlam
c3ede7ac23 Update mute_until in update_dialog_unmute_timeout.
GitOrigin-RevId: 37b978f0ab78ce5495cbf854fa0f796fbf453448
2020-06-05 04:05:43 +03:00
levlam
cbf77e3786 Add synchronous td_api::getChatFilterDefaultIconName.
GitOrigin-RevId: 15072bd5fffdd55e9879e0e5076a567bfe56f432
2020-06-05 03:43:13 +03:00
levlam
074040903b Fix total notification count in chats with unzynchronized notification settings.
GitOrigin-RevId: 3cb7093a5b2b349c26d84f290924cbdb7d54b545
2020-06-05 02:59:05 +03:00
levlam
d364bdbb5b Add are_pinned_dialogs_inited_.
GitOrigin-RevId: f1a9333cf7c8bab0a952dc6417dbdc40f9f16638
2020-06-04 17:30:10 +03:00
levlam
835038023a Update last dialog date only after all received chats are added to prevent out of order updateChatPosition for some random previously received chats.
GitOrigin-RevId: ec99596467502b705f51cac68286c15aa3517583
2020-06-04 16:22:51 +03:00
levlam
7fe9f1ca62 Update lists of received from server dialog only after it is fully updated.
GitOrigin-RevId: c426df9e04100d04557429e8eb3fb14ba897cf7a
2020-06-04 15:31:29 +03:00
levlam
4472fa4530 Do not update order of being added chat.
GitOrigin-RevId: 99a27adc3858336ac403ee306d4140671aaf696b
2020-06-04 02:29:58 +03:00
levlam
36b8ab4d1d Fix MessagesManager initialization after authorization.
GitOrigin-RevId: bf9c4068876e778316218997c41392228633ab7d
2020-06-04 02:02:17 +03:00
levlam
c9929b9528 Do not load dice sticker sets before init.
GitOrigin-RevId: f9c26c05c433a31e97b2fb8bcdcf5344dfe041c0
2020-06-04 01:19:37 +03:00
levlam
1f1307ab42 Log tries to send requests before authorization.
GitOrigin-RevId: 73d4efdaccf4564fa8558140380a845e2cc89c4b
2020-06-04 00:22:21 +03:00
levlam
9c5c112733 Fix max file size checks.
GitOrigin-RevId: 04695d57d2e32db680308a45ca7adad2f87ebe11
2020-06-03 21:22:58 +03:00
levlam
23e13ab5bc Improve logging.
GitOrigin-RevId: 519825dc66e76a1ba72c7100f78cfba0f796b752
2020-06-03 21:10:03 +03:00
levlam
7680ccf967 Do not reload dialog filters before authorization.
GitOrigin-RevId: c76d4e0a87a24c41a82d288534b4c3c201bf963b
2020-06-03 19:21:59 +03:00
levlam
44c141a776 Add more logging in CHECK.
GitOrigin-RevId: bdf8e0569105ef2033af8a4ac3bd2c82867dbc1f
2020-06-03 18:03:16 +03:00
levlam
1e6a2faecb Change scope mute_until in update_scope_unmute_timeout.
GitOrigin-RevId: 646066978d7bf5f4b2ee98f7e8d84f670e6bfa1f
2020-06-02 20:31:33 +03:00
levlam
3e3409ee9b Add schedule_scope_unmute.
GitOrigin-RevId: 4518854ffdc7e3d5dc0e7d74343ded9390d61dff
2020-06-02 20:21:56 +03:00
levlam
a0cb4aa260 Add schedule_dialog_unmute.
GitOrigin-RevId: 05fd1e8bbfc08f5a27217085050b3a0ec14a191e
2020-06-02 20:02:25 +03:00
levlam
d94afc648d Fix file database statistics.
GitOrigin-RevId: 4ad707a1e8cb17dffa1b6a7b6ed299dd772a563d
2020-06-02 18:19:44 +03:00
Arseny Smirnov
1ba4a5912d getDatabaseStats: return max filedb depth
GitOrigin-RevId: 7daf3dbabc342f1947777d0e2d52494edc65270e
2020-06-02 17:38:26 +03:00
levlam
c78fbe4bc5 Increase version to 1.6.6.
GitOrigin-RevId: 3e77d586408126b7795d27b9620616ac96ac742b
2020-06-02 17:03:04 +03:00
levlam
5776148de9 Delete unused method.
GitOrigin-RevId: 51e9426cdc00eef43a5fe926d1d079a986fd908a
2020-06-02 14:02:12 +03:00
levlam
25f77585c9 Move DialogFilter implementation to separate files.
GitOrigin-RevId: c58b7f42811242882f00d48152417826e465b5bc
2020-06-02 13:58:53 +03:00
levlam
e665edc4fc Rename thumbnail.thumbnail to thumbnail.file.
GitOrigin-RevId: e50ff07938086c7c4de7953e57206ebfb96b50e4
2020-06-02 13:27:06 +03:00
levlam
6599d76837 Merge local and remote filter changes.
GitOrigin-RevId: 4413966eb1c6dd1bcf4400b5ca19ad30ac7342d1
2020-06-02 05:40:17 +03:00
levlam
492c18523f Move check_dialog_filter_limits inside DialogFilter.
GitOrigin-RevId: f4daa38456c378856a3ba3c87ce841aa0b9154c2
2020-06-02 04:26:40 +03:00
levlam
7aaf6a4641 Rename is_similar to are_similar.
GitOrigin-RevId: 18988afaefde2f228e9e0c5be82aaa094993f0c2
2020-06-02 04:18:31 +03:00
levlam
23bec2101f Improve logging in config recoverer.
GitOrigin-RevId: c385a9c138f1f6a8a0d84b64246edca76a2705c5
2020-06-01 23:52:25 +03:00
levlam
f234440d3d Improve method names.
GitOrigin-RevId: 34ec6eb1d3f3db02b946e147673a64c269c49132
2020-06-01 23:09:35 +03:00
levlam
6172ece619 Do not check size exceeding of downloaded file.
GitOrigin-RevId: e7a7ca59867328737fe63db6aa60398229bd85a1
2020-06-01 21:35:06 +03:00
levlam
280d6f6649 Fail download in case of error in on_download_ok.
GitOrigin-RevId: 20ab3d279d54c945bfe4d114e9980ff8b636f292
2020-06-01 20:48:18 +03:00
levlam
113f3a7080 Add thumbnailFormatGif.
GitOrigin-RevId: 4ad35c83a6ae47d92cbb66cb60622d147f11c7b4
2020-06-01 20:34:48 +03:00
levlam
01b319f22b Add recommended filters at the beginning of the list.
GitOrigin-RevId: 850744bddec52d19952a599b3ac9a8fca4667bf9
2020-06-01 18:05:32 +03:00
levlam
6e42d79769 Replace emoji with icon_mane in chat filters.
GitOrigin-RevId: 61b30d075e330a92935ea2c8cfc0bf78fb32958b
2020-06-01 16:55:31 +03:00
levlam
5401fd636a Add more checks for is_bot.
GitOrigin-RevId: 808f15d4d7f55dba3515ee8f2dc42b292069a14d
2020-06-01 01:48:35 +03:00
levlam
14971c853d Make updateDialogFilters persistent.
GitOrigin-RevId: c89e8d3578ceb7fe21cabfad284c75cd9772001d
2020-06-01 00:34:45 +03:00