John Preston
ab35829358
Remove App::app(), App::uploader(), App::api().
...
Also use Auth() instead of AuthSession::Current*().
2017-08-25 14:39:18 +03:00
John Preston
9d81ea59dd
Attempt to fix an out of memory crash.
2017-08-01 21:14:43 +03:00
John Preston
80ee40eb18
Add debug info for out of memory crash.
2017-07-27 13:14:39 +03:00
John Preston
0e059ec788
Version 1.1.16: Add some debug info.
2017-07-26 17:56:01 +03:00
John Preston
2e0513a30f
Check CDN file hashes.
2017-07-23 12:34:41 +03:00
John Preston
90311dbf24
Fix CDN file download.
2017-07-18 22:01:22 +03:00
John Preston
8a8e101cd0
Fix crash in file downloader destruction.
...
Regression was introduced in 835b1801bc
.
We need to destroy all FileLoader instances before destroying the
Downloader instance, because they hold pointers to it and call its
methods in destructor if they need to cancel some MTP requests.
2017-04-15 20:39:32 +03:00
John Preston
af28e3b0d7
Alpha 1.0.32: Fix build in Xcode.
2017-04-12 23:28:04 +03:00
John Preston
8d28d0691f
API scheme updated to layer 66.
...
Support CDN file download.
2017-04-12 22:36:25 +03:00
John Preston
835b1801bc
Remove Q_OBJECT dependency from ApiWrap.
...
Also remove it from SingleDelayedCall -> SingleQueuedInvocation.
2017-04-07 18:13:19 +03:00
John Preston
a7d0473a1a
WebDocument without size is allowed to load.
...
We load a WebDocument with an unknown size the same way as we load
normal photos with FileLocation, that doesn't contain size as well.
If the size information from WebDocument and upload.WebFile is
inconsistent we still fail to load the file.
2017-03-30 12:49:15 +03:00
John Preston
31e3c6a2c6
WebDocument wrap to HistoryPhoto supported.
...
Only WebDocument with a valid 'size' field value and with a valid
'documentAttributeImageSize' attribute works wrapped as a photo.
2017-03-30 12:49:15 +03:00
John Preston
d91a2403b0
Use refs in AuthSession part getters.
...
Also use only AuthSession data for Contacts/Dialogs loaded state.
2017-03-15 19:24:06 +03:00
John Preston
f2465eba73
Make MTPstring and MTPvector value types.
...
Also move MTPstring implementation to QByteArray.
2017-03-10 23:27:26 +03:00
John Preston
81790b2271
Notifications management moved to AuthSession.
...
Also implemented Global::WorkMode() as an base::Variable.
2017-03-06 18:38:15 +03:00
John Preston
31009b19c6
Removed obsolete storage_file_type fields.
2017-03-04 14:28:21 +03:00
John Preston
83720d8789
Finalizing file renaming.
2017-03-04 13:23:56 +03:00
John Preston
b0dbe9d353
Renamed / moved a bunch of files.
...
Next commit fixes the build.
2017-03-04 12:56:07 +03:00