John Preston
897e432f40
Use CloudImageView in the inline bot thumbnails.
2020-06-01 18:09:33 +04:00
John Preston
91f50e8bdc
Move some more code to lib_mtproto.
2019-12-02 16:11:22 +03:00
John Preston
c742d7406c
Make MTP::Session handle the connection thread.
2019-11-29 15:36:06 +03:00
John Preston
06f5f7f7d9
Don't always restart connection on config change.
2019-11-29 15:36:06 +03:00
John Preston
276adec0ff
Fix temporary keys for media cluster.
2019-11-21 13:38:02 +03:00
John Preston
08bfe6f1c1
Extract mtproto key generation code.
2019-11-15 16:16:32 +03:00
John Preston
2577bedeac
Remove mtproto/facade.h from main pch.
2019-11-13 11:31:12 +03:00
John Preston
9cf4cf6dca
Move MTP::Instance to Main::Account.
2019-07-24 10:46:23 +02:00
John Preston
cabe06256b
Validate dcOption secrets.
2019-07-15 16:00:30 +02:00
John Preston
8135f4b427
Support base64 encoding of the secret.
2019-07-15 15:59:20 +02:00
John Preston
567bf60644
Use getters in MTP classes.
2019-07-05 16:23:07 +02:00
John Preston
cec8114b99
Add simple files and contacts export.
...
Also move all API calls in export to Export::ApiWrap.
2018-06-12 01:02:05 +03:00
John Preston
1392e05ab1
Move all gsl::byte helpers to base/bytes module.
2018-06-03 23:16:34 +03:00
John Preston
1af2769209
Closed beta 1.2.17.4: Fix option lookup.
2018-05-05 21:55:39 +03:00
John Preston
95fee543ec
Try all available endpoints from config.
2018-05-05 21:55:38 +03:00
John Preston
65f968ec1b
Update API scheme to layer 78.
2018-05-05 21:55:37 +03:00
John Preston
93f6d4b6e7
Support many config endpoints for one dc+params.
2018-05-05 21:55:37 +03:00
John Preston
ea7441ae77
Use single LEGAL file with license and copyright.
2018-01-03 13:23:14 +03:00
John Preston
273ac5eaf1
Add some more public keys.
2017-12-08 20:26:27 +04:00
John Preston
ad6ddcb507
Fix crash in selecting unsent messages.
...
Also add some more checks in file downloads and serialization.
2017-11-30 11:14:31 +04:00
John Preston
ac99318f34
Use ranges:: algorithms instead of base::
2017-11-20 16:24:00 +04:00
John Preston
ffc20e4492
Divide structs into several data/ modules.
2017-11-16 07:59:04 +04:00
John Preston
41ed2d1b84
New storage for shared media messages index.
2017-11-16 07:59:02 +04:00
John Preston
5b77bd5aa0
Limit maximum IP length in case of corrupted data.
2017-09-04 15:21:52 +03:00
John Preston
df64c972d8
Replace QFlags with base::flags.
2017-09-03 15:45:47 +03:00
John Preston
b3da99c302
Replace gsl::not_null<T*> with just not_null<T*>.
2017-08-30 19:15:41 +03:00
John Preston
edbc3f8fde
Use QDataStream directly on QByteArray.
2017-08-25 14:39:30 +03:00
John Preston
7245319351
Prefer static dc options when using a proxy.
2017-06-30 09:21:43 +03:00
John Preston
8ae159dd66
Add special dc options config request.
2017-06-29 11:40:07 +03:00
John Preston
b267957abe
Apply all MTP Key generation checks to calls.
...
Also move all OpenSSL BN_* calls to base/openssl_help header.
2017-05-09 23:46:16 +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
f2cd364e14
Alpha 1.0.21: Fix more compilation bugs.
2017-03-11 17:13:57 +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
08167a6a91
Removed #include "stdafx.h" from all files.
...
Currently the build without implicitly included precompiled header
is not supported anyway (because Qt MOC source files do not include
stdafx.h, they include plain headers).
So when we decide to support building without implicitly included
precompiled headers we'll have to fix all the headers anyway.
2017-03-04 12:27:52 +03:00
John Preston
bc76f5ee1e
Debug feature added for overriding dc options.
...
Now you can type "endpoints" in Settings and choose a file with
a complete set of dc_options that will be used instead of built-in
or received through mtproto config till the end of current session.
2017-03-01 20:22:37 +03:00
John Preston
7d89b54d1c
Ability to delete authorization keys added.
...
If we start logging in and we know, that some of the authorization
keys were read from the hard drive, not generated, we destroy all
the existing authorization keys and start generating new keys.
2017-02-25 19:48:22 +03:00
John Preston
dd933cf61c
MTP global state moved to MTP::Instance class.
...
Now there will be ability to start multiple mtproto instances.
2017-02-25 19:48:21 +03:00
John Preston
63c61637f8
Moved MTP::authedId() to AuthSession::Current().
2017-02-25 19:48:19 +03:00
John Preston
a35947141c
Encapsulated DcOptions to an independent class.
2017-02-25 19:48:19 +03:00