Andrea Cavalli
09b98f6b30
Merge remote-tracking branch 'td/master'
2022-01-04 00:04:21 +01:00
levlam
8085779cdc
Update copyright year.
2022-01-01 03:35:39 +03:00
Andrea Cavalli
48e3660d2c
Merge remote-tracking branch 'td/master'
2021-11-14 22:46:37 +01:00
levlam
e52508bdc1
Add source to PhotoSizeSource::get_type.
2021-11-14 10:47:02 +03:00
Andrea Cavalli
9c9772868b
Merge remote-tracking branch 'td/master'
2021-11-05 16:11:03 +01:00
levlam
0c1e268706
Don't generate MASK for parsed True fields.
2021-11-01 21:53:23 +03:00
levlam
6f34c5c6a1
Make PhotoSizeSource constructors named.
2021-10-27 16:52:22 +03:00
Andrea Cavalli
98244d1346
Merge remote-tracking branch 'td/master'
2021-10-20 02:21:14 +02:00
levlam
db7aa28bdf
A lot more minor improvements.
2021-10-19 18:11:16 +03:00
Andrea Cavalli
45e855f89d
Remove most memory related features
...
I can't maintain anymore this amount of features while keeping the library constantly updated and without bugs. Every merge was taking me multiple hours of revisioning the code. I give up.
From this commit onwards TDLight will only have small useful customizations that are easy to maintain.
Now the people relying on the OptimizeMemory method can restart the session every N hours to free up the memory.
The real way to keep a low memory usage must involve a huge refactoring to allow the unloading of the caches into the sqlite database, similar to what's already happening with messages data. Only Levlam has the ability to implement this without needing to merge the upstream everytime.
2021-09-25 22:11:42 +02:00
Andrea Cavalli
897d4af16c
Merge remote-tracking branch 'td/master'
2021-09-25 19:24:57 +02:00
levlam
db18baa503
Unify include order.
2021-09-19 00:47:05 +03:00
Andrea Cavalli
fe8f46bfe3
Disable leftover minithumbnails if the option is set
2021-08-03 19:55:27 +02:00
Andrea Cavalli
4286622a5a
Merge remote-tracking branch 'td/master'
2021-08-02 10:47:33 +02:00
levlam
1223c72741
Add class EncryptedFile.
2021-08-01 06:17:51 +03:00
Andrea Cavalli
c41ec7df43
Merge remote-tracking branch 'td/master'
2021-06-30 13:31:50 +02:00
levlam
9664181d48
Improve log messages.
2021-06-27 04:36:06 +03:00
levlam
7e61f9c95c
Improve error message.
2021-05-31 20:06:08 +03:00
Andrea Cavalli
2c77e82300
Merge remote-tracking branch 'td/master' into dev
2021-05-27 00:50:41 +02:00
levlam
a6a4eb6616
Don't include SliceBuilder.h in logging.h.
2021-05-17 15:21:11 +03:00
Andrea Cavalli
40048f12ca
Merge
2021-05-04 22:17:39 +02:00
levlam
3786033316
Add minithumbnails to userProfilePhoto and chatPhotoInfo.
2021-04-09 17:01:58 +03:00
Andrea Cavalli
4a8d8a3ffb
Bugfix
2021-04-03 14:52:16 +02:00
Andrea Cavalli
9c67d7a6b7
Fix disable_minithumbnails
2021-04-03 13:10:25 +02:00
levlam
26dc0ad930
Update layer to 127.
2021-03-26 18:15:21 +03:00
Andrea Cavalli
78291a96d4
Merge commit '70b71d569b81c66b25f8f77d9536b1d41fbf091d'
2021-03-21 01:04:45 +01:00
levlam
0339921102
Improve some spelling.
2021-03-15 03:32:14 +03:00
Andrea Cavalli
1ea79d2739
Merge latest commits
2021-03-11 18:25:39 +01:00
levlam
8430ba6d19
Remove expect_jpeg_minithumbnail parameter from get_photo_size.
2021-03-01 23:29:55 +03:00
levlam
0cdb0388ee
Improve TTL spelling.
2021-02-02 02:33:48 +03:00
levlam
4bb76a7b6f
Update layer to 128. Remove photo volume_id/local_id.
2021-04-16 17:43:51 +03:00
Andrea Cavalli
cf3cc7b1d3
Log minithumbnail errors only if minithumbnails are enabled
2021-01-03 14:43:52 +01:00
Andrea Cavalli
85fb357a19
Merge commit '82f0386e73b7128a8aafec5bfa7dd825fe94ac39'
...
Conflicts:
td/telegram/MessagesManager.cpp
2021-01-02 12:57:08 +01:00
levlam
82f0386e73
Move some functions from misc.h to algorithm.h.
2021-01-01 16:01:03 +03:00
levlam
52c1da0a70
Update copyright year.
2021-01-01 15:57:46 +03:00
levlam
6e20aaa428
Add source to get_dimensions.
2021-01-23 22:04:35 +03:00
Andrea Cavalli
204757e075
Merge
2020-12-25 18:58:35 +01:00
levlam
d22dabfdaf
Update layer to 121.
2020-11-09 23:41:23 +03:00
Andrea Cavalli
134d20b7ec
Merge commit 'bf945e05be9a9f696bdd866cc3427ac1bc7a4825'
2020-10-26 21:55:16 +01:00
levlam
f59a11706c
Use unique location for outgoing photos.
...
GitOrigin-RevId: ac3a0eed1847ee7b96d463758ee33b85c6797ac5
2020-10-22 02:11:32 +03:00
Andrea Cavalli
fc5b0e9d06
Merge commit '6b1f6b829d0d71f5d50662b1ff58b7869c1e1d7f'
...
Conflicts:
td/telegram/Client.cpp
td/telegram/cli.cpp
2020-10-12 16:15:14 +02:00
levlam
3c5b09bad7
Hide photo sizes, which can't be downloaded.
...
GitOrigin-RevId: 420860824f41d5fecbb935c756d9b6f0a2564cb7
2020-10-12 10:31:57 +03:00
levlam
4da9f9d334
Use stable sort for photo sizes to keep "i" the last.
...
GitOrigin-RevId: 7feab3e73a3a03bc9fd3a0e76e05ab4cbb0f10d2
2020-10-12 10:17:02 +03:00
Andrea Cavalli
24ee424c91
Merge commit '3aee3527511ce43ae670081f3f65a71e7c92ee2c'
...
Conflicts:
td/telegram/MessagesDb.cpp
2020-10-01 11:42:54 +02:00
levlam
1a4a834b2d
Add progressive JPEG support.
...
GitOrigin-RevId: 48c56c3c2575da76df5e9237f6fb043e374bf30d
2020-08-25 15:09:24 +03:00
levlam
23b3eb4931
Update layer to 118. Support message forward count.
...
GitOrigin-RevId: 10f59fede8b4a86c871949fc721fedd1d615c4bf
2020-07-31 05:50:11 +03:00
cc087aeacd
Merge commit 'ab5d35371b1fdcfb30dfa981ede54ec83db214a9'
...
Conflicts:
sqlite/CMakeLists.txt
td/telegram/ContactsManager.cpp
td/telegram/Photo.cpp
td/telegram/Td.cpp
td/telegram/WebPagesManager.cpp
td/telegram/files/FileManager.h
2020-07-29 16:39:33 +02:00
levlam
405934676e
Change file_id type in as_profile_photo.
...
GitOrigin-RevId: fe45d895b4781c942512d5c838d99449431440d3
2020-07-20 17:46:54 +03:00
levlam
6b00f2fe6b
Update cache after profile photo deletion instead of dropping it.
...
GitOrigin-RevId: 0bb120eeececb7706016aec01accd4f6194deef4
2020-07-20 17:05:49 +03:00
levlam
8477f329f5
Add chatPhotoInfo.has_animation.
...
GitOrigin-RevId: d209507fdd59dd154c6acd297c6c7496b6356029
2020-07-08 22:59:31 +03:00