Commit Graph

4784 Commits

Author SHA1 Message Date
levlam
2277557f52 Do not try to get promo data before authorization.
GitOrigin-RevId: 404e4fad3802c37fb05df68d05035b9903f2eb33
2020-08-16 10:17:46 +03:00
levlam
3175e6680f More uses of td in AuthManager.
GitOrigin-RevId: 5b5427ec16f93b309cebdb2115473b38d2d3dab4
2020-08-16 10:17:17 +03:00
levlam
e0caa301a5 TQueue: fix adding already expired events.
GitOrigin-RevId: b78748cd001d9439c9e215b378b76b973a77a79a
2020-08-16 02:57:31 +03:00
levlam
f266aa3912 Minor fixes.
GitOrigin-RevId: a4aacfa1ecab2718475d32bcbd99f9671ba7e982
2020-08-14 22:51:10 +03:00
Arseny Smirnov
9c40e37288 Clocks: use CLOCK_[BOOTTIME,MONOTONIC_RAW] for Clocks::monotonic
GitOrigin-RevId: 729311e1a7a36a9245ecdb5921b81c4834ec1dc6
2020-08-14 20:41:00 +03:00
levlam
129e673769 Minor.
GitOrigin-RevId: 17528428dd1741527565d1b2bc012928d3f24c80
2020-08-14 19:53:26 +03:00
levlam
be299897c3 Do not copy message counter to forwarded messages.
GitOrigin-RevId: 864ca542b5b63ce87bc04575429f21f418e7ccfe
2020-08-14 17:31:23 +03:00
Arseny Smirnov
775ef44ed8 Clocks: use CLOCK_[UPTIME|UPTIME_RAW|BOOTIME] when possible for Clocks::monotonic
GitOrigin-RevId: d0aeb9d98d54b298093cba3b2ca97c6ab16eba28
2020-08-14 19:51:45 +03:00
Arseny Smirnov
28596f1a3f TdDb: reuse derived sqlcipher version
GitOrigin-RevId: 28a94a5dee34f47850deb5cf1ca41e92e24bf648
2020-08-14 17:48:43 +03:00
Arseny Smirnov
45bfb1b384 TdDb: create sqlite db during SqliteDb::change_key
GitOrigin-RevId: bc0bff23a50f17d9111edac6ba4194fbdffaa1b4
2020-08-14 17:11:58 +03:00
Arseny Smirnov
11e09c5699 Sqlcipher: use compatibility mode instead of migration
GitOrigin-RevId: 91fe86328e7fcd2e03e298482ad2ffac2b48767f
2020-08-14 13:44:16 +03:00
levlam
e43f419a6f Patch SQLite ftruncate call only on Android.
GitOrigin-RevId: 930b58281ba5eab7d4f560e56b129d8b043fa455
2020-08-13 22:40:49 +03:00
levlam
9592aac404 Minor improvements.
GitOrigin-RevId: 09fbcc25ade8d77c13dc580f13b206c07ba53f9f
2020-08-13 16:57:28 +03:00
Arseny Smirnov
3b18309e80 FileManager: attempt to close ForceUpoadActor
GitOrigin-RevId: 5c53784b7b49c41347477c2f7808cc2845d12463
2020-08-13 20:04:06 +03:00
Arseny Smirnov
cecea2ba08 Add debug for 'PRAGMA cipher_migrate'
GitOrigin-RevId: 69c9a979ccf27f77d106e6ce7712c6e4a939722c
2020-08-13 19:21:15 +03:00
Arseny Smirnov
d4f0162ee9 Sqlite: fix DB corruption on some Samsung devices
GitOrigin-RevId: bc3e631f6873c0a4a53b8aea2159727fa0d1e956
2020-08-12 22:54:34 +03:00
Arseny Smirnov
0ef5577209 Sqlite: repeat fixes from previous commits
GitOrigin-RevId: 1dce19984342f573aaf106180f3e72a399114b26
2020-08-12 22:49:17 +03:00
Arseny Smirnov
b9de1b94d2 Sqlcipher: automatic migrate
GitOrigin-RevId: 209360f2b40a0d05ec53bb55890518e50c05f34a
2020-08-12 22:36:46 +03:00
Arseny Smirnov
c66a72fe90 Sqlcipher: update version to 4.4.0 (without fixes)
GitOrigin-RevId: ad3039010f1fd047d500df9fd9e388165c38a4ba
2020-08-12 21:09:31 +03:00
Arseny Smirnov
10c619053e Add test for sqlite chipher compatibility
GitOrigin-RevId: 7b458dd4208166391071bc64dcb9204ff2da1df7
2020-08-12 18:36:26 +03:00
Arseny Smirnov
0e4e1268ac Session: more aggressive debug for mtproto rpc errors
GitOrigin-RevId: efe1b894349d6542c4483a1f72c555bd29ddebd6
2020-08-12 16:56:06 +03:00
Arseny Smirnov
2add7947b7 ConfigRecoverer::Session: bugfix of closing
GitOrigin-RevId: 35493c586011974f81b2a4ef84cd2b1c4d1581a5
2020-08-12 11:34:12 +03:00
Arseny Smirnov
1d56a371cd ConfigManager: minor refactoring for hangup_shared
GitOrigin-RevId: 56af208cbe2e32120fa286b9e19fce58beaf8c9b
2020-08-11 16:31:50 +03:00
levlam
6a30258d39 Add reply_markup to copy options.
GitOrigin-RevId: 94c83ee8fba2a13acde5114f1efee9fb2c6080da
2020-08-11 11:52:38 +03:00
levlam
8fb53c6ec2 Allow to replace caption when message is copied.
GitOrigin-RevId: 6e190830d66916de2deb0b371185b7db6ea42b00
2020-08-11 10:35:19 +03:00
levlam
c780fc2812 Improve MEMPROF size tracking.
GitOrigin-RevId: 3f7a82afbc464edb0dc3ad7b27bdd7e4e1de25cc
2020-08-11 07:54:39 +03:00
levlam
b6c915c2f8 Fix BufferSlice self-move.
GitOrigin-RevId: 904ea326cc860dd92c49d319fc5fabde22a35223
2020-08-11 07:23:25 +03:00
levlam
14014e3f3d Do nothing for 0 BufferSlice size change.
GitOrigin-RevId: 2a57325e4f8b7be83db671f561bce9a98de92622
2020-08-11 05:52:56 +03:00
Arseny Smirnov
4d19016970 HttpConnection: safe migrate between schedulers
GitOrigin-RevId: 2bcc79fc100613a86a8048a2c35e4791903ccb11
2020-08-10 17:10:16 +03:00
levlam
301d0577ba Add td_api::sendCallSignalingData.
GitOrigin-RevId: d14899cd97fb46d472bcb48fd4b51f568e995608
2020-08-10 11:34:28 +03:00
levlam
cdf6acac32 Add updateNewCallSignalingData.
GitOrigin-RevId: ce458fb7ed05fd202f255e348c009dad248018ab
2020-08-10 10:38:24 +03:00
levlam
1bb853a3ef Fix error logging condition.
GitOrigin-RevId: 97d494c0eeb53fc86f875e88584b4da95aee57c0
2020-08-10 09:35:30 +03:00
levlam
de8d92bead Add MessagesManager::set_dialog_unread_mention_count.
GitOrigin-RevId: 3f4874fd25886c502f69a187426730c1b9a0c90b
2020-08-10 09:19:08 +03:00
levlam
12a79efbdc Improve log messages.
GitOrigin-RevId: 23d2e596dd9ce28d780fe125abd468fef132c61b
2020-08-10 08:07:01 +03:00
levlam
16c02c6b25 Rename sendMessageOptions to messageSendOptions.
GitOrigin-RevId: 70270e56ad61e21ad22f207adce6c27c2873f374
2020-08-09 15:14:30 +03:00
levlam
a404948707 Add MessageCopyOptions.
GitOrigin-RevId: a61b93c3c215c42c9a7f30195cc637187472751e
2020-08-09 14:18:08 +03:00
levlam
983119ada3 Unify begin/end usages.
GitOrigin-RevId: 422dd5dbfdab7240818bbc35a7c554effa097378
2020-08-09 04:01:30 +03:00
levlam
b1adbcba05 Suppress warning about changed chat order when last message is not saved to database.
GitOrigin-RevId: 23ee4bc68a3070fc3b9ed8edd24ece13a81a9a8a
2020-08-08 23:00:51 +03:00
levlam
499deffa8d Minor benchmark improvements.
GitOrigin-RevId: e75e3ebe819e248b2f5203aa17d736ef8284bd46
2020-08-08 22:00:05 +03:00
levlam
3fb0bdff15 tg_cli: fix OpenSSL initialization.
GitOrigin-RevId: 388f70155c7f3a1f5276886c1cb38131dd302adc
2020-08-08 21:56:34 +03:00
levlam
fe5bf41980 Minor improvements.
GitOrigin-RevId: 45477784ae1840f217b9394e3d0cc56e1241f9ce
2020-08-07 22:14:42 +03:00
Arseny Smirnov
037bfb3776 Binlog: defragmentation of BinlogEvents buffers during reindex
GitOrigin-RevId: 89f61031d27d8aa20963a46566876a461ea3e338
2020-08-07 20:30:05 +03:00
Arseny Smirnov
80d98def74 TQueue: run_gc returns count of deleted events
GitOrigin-RevId: 7cddd57c1c2842eade83aa253209462e33629dc9
2020-08-07 19:36:23 +03:00
Arseny Smirnov
c48ef93e1e tdutils: add skip_eintr_timeout and use it for EventFd
GitOrigin-RevId: 716218731f914e89e6f1e542054298380441b522
2020-08-07 18:50:33 +03:00
Arseny Smirnov
857f981847 TQueue: minor refactoring of gc
GitOrigin-RevId: 4f4d460723a60f075e2a66d2b1269bc8e41927d1
2020-08-07 14:03:39 +03:00
levlam
e4ecebc6bb Do not include unused headers on Windows.
GitOrigin-RevId: bf9d0c15d6271019253fe4157c9db42c34528f7b
2020-08-07 11:59:21 +03:00
levlam
824744b74e Update Ubuntu 20 build instructions.
GitOrigin-RevId: 8407d77b8e93a0a63c55fd1770dd089ebbb749a6
2020-08-07 07:09:20 +03:00
levlam
2097934da5 Optimize TQueue::run_gc, so it can be run arbitrary often.
GitOrigin-RevId: f7fc488cf3682683c0164c557992dbbc4eed9d4d
2020-08-07 06:06:29 +03:00
levlam
bea0ab1282 Improve Client tests.
GitOrigin-RevId: d92924ccc35d4bdd47f495712b241766410c7e53
2020-08-06 22:07:08 +03:00
levlam
62c08e7f0a Handle video call push notifications.
GitOrigin-RevId: 680b4961aacd1714b0aa8d3ba60b04d7f5e6fea6
2020-08-06 21:29:40 +03:00