John Preston
59ecf375b0
Move tg:// handlers to a separate module.
...
Also move joinGroupByHash and stickerSetBox from MainWidget.
2018-11-26 17:31:13 +04:00
John Preston
8a3615281c
Support structured bindings in base::flat_map.
2018-11-20 19:38:40 +04:00
John Preston
60103f7ad6
Use upstream range-v3 on MSVC.
...
The build works using MSVS 15.9 and latest range-v3 code.
2018-11-20 19:38:39 +04:00
John Preston
f8eef7c9a6
Forget least used images gradually.
2018-11-04 15:51:37 +04:00
John Preston
b6128b6fe0
Fix undefined behaviour in base::weak_ptr.
...
Regression was introduced in 1c79f85d00
.
Invalid casts lead to crashes in macOS notifications handling.
Casts were T* -> has_weak_ptr* -> void* -> T* which was not working
in case T had has_weak_ptr as not first base class.
Now it uses just T* -> has_weak_ptr* -> T* casts.
2018-10-10 00:19:47 +03:00
John Preston
fd53385c1f
Version 1.4.1: Fix build for old OS X.
2018-10-09 21:58:56 +03:00
John Preston
1c79f85d00
Optimize base::weak_ptr.
2018-10-09 19:27:16 +03:00
John Preston
b66f32fe9e
Version 1.4.0: Fix build for old OS X versions.
2018-09-28 15:50:47 +03:00
John Preston
d485a05935
Reorder chat settings sections.
2018-09-28 14:20:36 +03:00
John Preston
a70613d929
Fix client side generated changelogs display.
...
Also use message date if available in MediaView.
2018-09-27 23:31:48 +03:00
John Preston
2e5a0e056c
Move to std::optional.
2018-09-21 19:28:46 +03:00
John Preston
736789a9ed
Closed beta version 1.3.14.1: Fix for OS X old.
2018-09-01 18:56:08 +03:00
John Preston
8210a51fdc
Fix build for Xcode.
...
Also guard database compactor so that it won't work after closing.
2018-09-01 18:56:08 +03:00
John Preston
08ff324b1b
Work with Cache::Database in LocalStorageBox.
2018-09-01 18:56:08 +03:00
John Preston
a58c082cfa
Fix base::binary_guard.
2018-09-01 18:56:08 +03:00
John Preston
2f9d65b4eb
Add a generic BinlogReader.
2018-09-01 18:56:08 +03:00
John Preston
b9af3c7f34
Add base::ConcurrentTimer.
...
Write removes from cache database once an hour.
2018-09-01 18:56:08 +03:00
John Preston
64b8adb3d0
Isolate lib_base library. Use crl::time in getms.
2018-09-01 18:56:08 +03:00
John Preston
cb371f09ac
Clear old versions of Storage::Cache::Database.
2018-09-01 18:56:08 +03:00
John Preston
9147c12687
Add basic implementation of Storage::Cache DB.
2018-09-01 18:56:08 +03:00
John Preston
62a396b661
Fix Storage::File lock with killing and add tests.
2018-09-01 18:56:08 +03:00
John Preston
8a371b9c1b
New storage encrypted file.
2018-09-01 18:56:08 +03:00
John Preston
46946c7323
Use correct SHA1_ functions.
...
Fixes #5103 .
2018-08-27 14:36:26 +03:00
John Preston
bdab477040
Update API scheme to layer 84.
2018-08-11 22:03:34 +03:00
John Preston
550c159ca8
Update API scheme to layer 83.
2018-08-04 23:11:04 +03:00
John Preston
90f4187ca9
Don't accept tg:// links in passport callbacks.
...
Fixes #5021 .
2018-07-31 22:51:06 +03:00
Sven-Hendrik Haase
947204bb9d
Add missing include to <gsl/gsl> ( #4886 )
2018-07-03 20:23:14 +03:00
Sven-Hendrik Haase
f37f097dec
Add include to <memory> ( #4887 )
2018-07-03 20:22:52 +03:00
John Preston
52f2f96f36
Closed beta 1.3.7.1: Fix Release build.
2018-06-22 01:01:45 +01:00
John Preston
2dc3ec955a
Add downloaded files cache in export.
...
Also write downloaded photo paths.
2018-06-17 13:47:47 +01:00
John Preston
9d02e539c8
Update scheme for special export methods.
...
Export all saved contacts.
2018-06-16 20:48:38 +01:00
John Preston
83786ddeaf
Export chat messages photos and documents.
...
Also rename .visit() with .match() in MTP types.
Also add base::match_method() and base::match() for base::variant.
Also add base::match() and .match() for base::optional_variant.
2018-06-14 01:09:48 +03: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
c587c011d2
Start data export in lib_export.
2018-06-12 01:02:04 +03:00
John Preston
c2fa149ffd
Replace InvokeQueued with on_main for has_weak_ptr.
2018-06-12 01:02:04 +03:00
John Preston
35659536c5
Fix first passcode unlock.
...
Fixes #4811 .
2018-06-07 10:44:38 +03:00
John Preston
866c5e9b7b
Request common notify settings when needed.
...
If user / group has default notify settings we need common user
or common group notify settings to display the badge properly.
2018-06-06 22:56:35 +03:00
John Preston
c85fd368fe
Possible fix of travis build.
2018-06-06 15:16:21 +03:00
John Preston
20b67ee000
Fix build for GCC.
2018-06-06 13:59:53 +03:00
John Preston
d03d699331
Improve base::optional, add emplace().
2018-06-05 21:51:05 +03:00
John Preston
dd81f5d59f
Replace base::lambda with shorter term.
...
base::lambda -> Fn (type alias for std::function).
base::lambda_once -> FnMut (type alias for base::unique_function).
base::lambda_guarded -> crl::guard.
base::lambda_call_type_t -> crl::deduced_call_type.
2018-06-04 18:38:27 +03:00
John Preston
5c0cc8a947
Append param to query or hash of callback_url.
2018-06-03 23:16:38 +03:00
John Preston
ead31757d7
Submit passport results.
2018-06-03 23:16:36 +03:00
John Preston
1392e05ab1
Move all gsl::byte helpers to base/bytes module.
2018-06-03 23:16:34 +03:00
John Preston
f633ead3ab
First version of IdentityBox with encrypted data.
2018-06-03 23:16:33 +03:00
John Preston
07e8a2bd85
Initial layout of the passport authorization form.
2018-06-03 23:16:33 +03:00
John Preston
a053384618
Fix mtproto-proxy working with domain names.
...
Also refactor a bit TcpConnection and HttpConnection classes.
2018-05-17 13:27:49 +03:00
John Preston
93f6d4b6e7
Support many config endpoints for one dc+params.
2018-05-05 21:55:37 +03:00
John Preston
7482025c10
Support work with different dcs on a single IP.
2018-05-05 21:55:37 +03:00
Marco Trevisan
9dc03c4f0f
Linux ARM compile fixes ( #4399 )
...
This fixes errors when compiling in ARM
2018-03-09 23:48:47 +03:00