John Preston
d2d6b319b6
Update API scheme to layer 93. Broken.
2019-01-17 12:21:28 +04:00
Gregory K
11b991cddc
Add call settings ( #5540 )
2019-01-05 15:08:02 +04:00
John Preston
7b5e5c2587
Move caption to the next album item on cancel.
...
After #4869 albums are sent with captions in the first media.
In case we cancel the first media leaving the rest of the album
the caption will be lost unless we move it to the new "first" media.
2018-12-26 11:24:12 +04:00
John Preston
096c310e0e
Display consistent caption/comment placeholder.
...
After latest PRs regarding sticker sending with comment (#5500 )
and album sending with caption (#4869 ) the input field placeholder
in SendFilesBox was inconsistent with the sending behaviour. Fix it.
2018-12-26 10:53:21 +04:00
John Preston
71cf4a4885
Change default autodownload settings.
2018-12-26 09:58:27 +04:00
John Preston
e3cc8652e4
New structs for media autodownload settings.
2018-12-25 22:15:22 +04:00
John Preston
6562a1f6af
Add 'Count unread messages' option.
2018-12-04 14:32:48 +04:00
John Preston
3bd0efa91e
Use 1.7x instead of 2x in voice messages.
2018-12-03 19:33:34 +04:00
John Preston
3461f3dfc7
Destroy file loaders not delayed.
2018-11-26 11:33:29 +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
5163905954
Add a Delete/Share menu for unofficial languages.
2018-11-16 20:17:58 +04:00
John Preston
6d65cf2382
Redesign languages box with a search filter.
2018-11-16 20:17:58 +04:00
John Preston
162da089ec
Handle t.me/setlanguage links.
...
Also support custom langpacks with base langpacks.
2018-11-16 20:17:58 +04:00
John Preston
8ed600bf3f
Add some debug logs.
2018-11-16 20:17:58 +04:00
John Preston
346cb4e203
Fix some bugs in double playback speed.
...
- Apply double speed for all voice tracks, not only for the current.
- Use dedicated atomic in Mixer for the voice speed (fix race).
- Store the playback speed in user settings, not in global settings.
- Use float64 for setting (just consistency, no float-s right now).
2018-11-08 17:06:22 +04:00
Magnus Groß
de8518a112
Implement double playback speed
...
This adds double playback speed for both voice messages and round video
messages.
The 2x playback speed setting is global and is saved in local storage.
Fixes #4907
2018-11-08 17:05:34 +04:00
John Preston
ef38572d5a
Detect and send supports_streaming bit for videos.
2018-11-07 18:10:00 +04:00
John Preston
751506d5b5
Better adjust shared media count.
2018-11-06 13:50:31 +04:00
John Preston
e482f041a8
Allow disabling even system proxy settings.
...
Fixes #4944 .
2018-11-05 18:52:01 +04:00
John Preston
8eb0f3b60a
Remove some unneeded Q_OBJECTs.
2018-11-04 15:51:39 +04:00
John Preston
711b8cfa36
Fix auto interface scale by primary screen dpi.
2018-11-04 15:51:39 +04:00
John Preston
8000ff2cd7
Generate high quality thumbnail on sending video.
2018-11-04 15:51:38 +04:00
John Preston
595134cab5
Move image-related modules to ui/image/.
2018-11-04 15:51:37 +04:00
John Preston
8b76428c7e
Create ImagePtr-s using a factory method.
2018-11-04 15:51:37 +04:00
John Preston
4b5b79e415
Use final Image with different Images::Source-s.
2018-11-04 15:51:37 +04:00
John Preston
113f665295
Move Image and derived to ui/image.
2018-11-04 15:51:36 +04:00
John Preston
5b4abe69aa
Add interface scale (100%..150%) for Retina.
...
Fixes #69 , fixes #3126 , fixes #3789 .
2018-10-16 23:00:55 +03:00
John Preston
3cdfa1014a
Fix reading saved self.
2018-10-16 11:38:09 +03:00
John Preston
19a9a990b6
Allow using any interface scale between 100%-300%.
2018-10-16 11:38:09 +03:00
John Preston
b847c8424a
Use single emoji sprite and scale + cache it.
2018-10-15 09:03:29 +03:00
John Preston
e896971fa4
Allow instant template selection (support).
2018-10-11 19:07:37 +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
9f90d3a7fc
Load maps using mtproto instead of google.
2018-10-09 19:27:18 +03:00
John Preston
b322f986a8
Provide user phone on auth session create.
...
We need the phone in the constructor to switch on the support mode.
2018-10-09 19:27:17 +03:00
John Preston
f362702856
Add UI to specify export time range.
2018-10-09 19:27:17 +03:00
John Preston
25cefc6eab
Allow fix chats order and auto switch (support).
2018-10-09 19:27:16 +03:00
John Preston
d485a05935
Reorder chat settings sections.
2018-09-28 14:20:36 +03:00
John Preston
a7772b922c
Improve sticker file reference refreshing.
2018-09-26 21:23:08 +03:00
John Preston
2e5a0e056c
Move to std::optional.
2018-09-21 19:28:46 +03:00
John Preston
fd0719db6d
Add animations enable/disable setting.
...
Open chats / users on mouse press if animations are disabled.
2018-09-20 21:26:10 +03:00
John Preston
34665cd6da
Save self to local storage map.
2018-09-19 19:22:13 +03:00
John Preston
8c1cc51c2e
Move peer photo update from Messenger to ApiWrap.
2018-09-19 19:22:13 +03:00
John Preston
4b87363a20
Check value size before putting to cache db.
2018-09-04 22:37:22 +03:00
John Preston
9ba331693f
Async clear of legacy local storage.
...
Sync call to QDir::entryList is a bad idea for the user data folder.
Some users reported hanging on startup with 1.25M legacy cache files.
Now we enumerate up to 10000 files at once asynchronously and clear.
2018-09-04 22:37:22 +03:00
John Preston
2096007ed9
Fix clearing leaked files with a passcode.
2018-09-01 18:56:09 +03:00
John Preston
80cd74edc8
Closed beta version 1.3.14.2: Fix fallthrough.
2018-09-01 18:56:08 +03:00
John Preston
069232ec1b
Allow changing limits for cache in Settings.
2018-09-01 18:56:08 +03:00
John Preston
5733f4079f
Allow updating some database settings.
2018-09-01 18:56:08 +03:00
John Preston
55fe977d54
Add some tests for Database.
2018-09-01 18:56:08 +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
c86252777b
Remove leaked (unknown) files in user data folder.
2018-09-01 18:56:08 +03:00
John Preston
2bcdf27b03
Workaround GCC bug.
2018-09-01 18:56:08 +03:00
John Preston
2001d3c617
Allow cleaner to work after database is closed.
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
55f60866cb
Set correct cache tags for different file types.
2018-09-01 18:56:08 +03:00
John Preston
e2f08d4161
Write uint8 tags to Database and count stats.
...
Also pass rvalues to Database where copies are required anyway.
2018-09-01 18:56:08 +03:00
John Preston
2e7f4c2f21
Use Storage::Cache::Database for file caching.
2018-09-01 18:56:08 +03:00
John Preston
5824afa941
Add copy() and move() to Cache::Database.
2018-09-01 18:56:08 +03:00
John Preston
adcc11c474
Ignore database actions after IO error.
2018-09-01 18:56:08 +03:00
John Preston
4769a1a49f
Added 100k test for storage cache.
2018-09-01 18:56:08 +03:00
John Preston
f6a6a39d3b
Fix compactor and add simple tests for it.
2018-09-01 18:56:08 +03:00
John Preston
2940023cb0
Simplify db tests.
2018-09-01 18:56:08 +03:00
John Preston
d426f7242a
Implement Storage::Cache::Compactor for database.
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
a4c1d5fe9d
Move cache database to a separate module.
...
Also start compactor code.
2018-09-01 18:56:08 +03:00
John Preston
13c7c99965
Ignore put queries that don't change anything.
2018-09-01 18:56:08 +03:00
John Preston
fbfa7e7be3
Write date/time inside Store cache record.
2018-09-01 18:56:08 +03:00
John Preston
e5dda6dd49
Write removes/touches in bundles. Apply limits.
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
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
81731139e9
Add tests for storage encrypted file.
...
Also fix some bugs found by the 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
a8da0c18ee
Closed beta version: 1.3.13.2: Fix broken beta.
2018-08-20 17:26:28 +03:00
John Preston
b78c08a30a
Bump version to 1.3.13.
2018-08-20 17:26:28 +03:00
John Preston
c913c77fef
Refresh file references when sending stickers.
2018-08-20 17:26:28 +03:00
John Preston
557d363d02
Refresh file references when downloading files.
2018-08-20 17:26:28 +03:00
John Preston
839885910c
Pass FileOrigin in all file downloads.
2018-08-20 17:26:28 +03:00
John Preston
ee16070abe
Update API scheme to layer 86.
2018-08-20 17:26:27 +03:00
John Preston
90f6642d33
Use always the same sizes for group layout.
...
For the floating point precision to matter less in the album layout
decisions use always full image sizes for layout
when sending an album and when displaying it.
Fixes #5049 .
2018-08-04 16:48:15 +03:00
John Preston
a99ae76ad4
Allow single chat history export.
2018-07-31 22:56:03 +03:00
John Preston
6429e8b532
Improve theme applying.
2018-07-31 22:56:03 +03:00
John Preston
cb338e330f
Allow independently change default / night themes.
2018-07-31 22:56:03 +03:00
John Preston
52e7ddf079
Add '-externalupdater' command-line argument.
...
Now no-autoupdater mode can be switched on in runtime.
Also TDESKTOP_DISABLE_AUTOUPDATE build is disabled in CI (trivial).
Fixes #4895 .
2018-07-12 18:35:59 +03:00
John Preston
33095966af
Move sendMessage and sendInlineResult to ApiWrap.
2018-06-27 22:58:32 +01:00
John Preston
ff53404d5b
Update API scheme to layer 82.
2018-06-27 22:58:32 +01:00
John Preston
8c2f11de7d
Send correct paddings in improved TCP protocol.
2018-06-25 19:55:52 +01:00
John Preston
0143fd28af
Suggest start export when time comes.
2018-06-23 00:56:53 +01:00
John Preston
844d030332
Save export settings to local storage.
2018-06-23 00:56:53 +01:00
John Preston
0e9793b845
Move MimeType from utils to core/mime_type.
...
Also move to Core namespace.
2018-06-14 01:08:47 +03:00
John Preston
c85fd368fe
Possible fix of travis build.
2018-06-06 15:16:21 +03:00
John Preston
5ed15cd0b3
Fix EditColorBox.
...
Regression was introduced in bfc748cd31
.
Fixes #4803 .
2018-06-06 13:04:37 +03:00
John Preston
2bc60fa54f
Save secure files to local storage.
2018-06-03 23:16:34 +03:00
John Preston
c2aa9c571c
Follow secure file upload/download progress.
2018-06-03 23:16:34 +03:00
John Preston
1392e05ab1
Move all gsl::byte helpers to base/bytes module.
2018-06-03 23:16:34 +03:00
John Preston
b2014f403e
Secure files upload / download support.
2018-06-03 23:16:34 +03:00
John Preston
0eb3d20250
Use https in default auto-update prefix.
...
Fixes #4674 .
2018-05-27 14:26:45 +03:00
John Preston
5e7642b42a
Support markdown and replaces in media captions.
2018-05-24 16:03:21 +03:00
John Preston
30dd8fe070
Unite InputField and InputArea.
...
Also support and use instant replaces in InputField-s.
2018-05-20 23:37:59 +03:00
John Preston
4478c0a143
Resolve domain names for proxy servers.
...
Also use dc_id-checked auth key creation.
Fixes #4695 .
2018-05-18 10:57:11 +03:00
John Preston
168a7ce2e5
Add "Suggest emoji replacements" checkbox.
...
Also emoji suggestions insert an instant emoji replacement.
2018-05-13 18:56:08 +03:00
John Preston
bb6ab5314c
Fix recent stickers saving and possible crash.
...
Regression was introduced in 97c15865a5
.
2018-05-10 15:03:02 +03:00
John Preston
cc2c13d018
Fix build with TDESKTOP_DISABLE_AUTOUPDATE.
...
Fixes #4655 .
2018-05-07 00:34:58 +03:00
John Preston
48c1576d7f
Add 'Use proxy for calls' option.
2018-05-07 00:29:53 +03:00
John Preston
ad1f089802
Read autoupdate prefix from config.
2018-05-05 21:55:38 +03:00
John Preston
4bf66cb6e9
Better special config implementation.
2018-05-05 21:55:38 +03:00
John Preston
a7c77682d7
Apply, delete and restore proxies in the box.
2018-05-05 21:55:38 +03:00
John Preston
900d1ddb36
Support multiple proxies in local storage.
2018-05-05 21:55:38 +03:00
John Preston
993cb987a6
Improve autoupdate code, move it from Application.
2018-05-05 21:55:37 +03:00
John Preston
65f968ec1b
Update API scheme to layer 78.
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
John Preston
4a9db99082
Use application level proxy settings.
2018-05-05 21:55:37 +03:00
John Preston
e5b2e0a6b5
Fix memory clearing from photos/documents.
2018-04-07 11:01:32 +04:00
John Preston
ce9445287c
Extend huge local cache map crash annotations.
2018-03-26 00:56:41 +04:00
John Preston
13e07b1623
Add some debug information.
2018-03-21 13:46:22 +04:00
John Preston
4a32b00068
Setting for cloud stickers suggestions.
2018-03-20 01:09:03 +04:00
Marco Trevisan
9dc03c4f0f
Linux ARM compile fixes ( #4399 )
...
This fixes errors when compiling in ARM
2018-03-09 23:48:47 +03:00
John Preston
321f5d879d
Fix crash in faving stickers.
...
Don't fill dates in any sets except CloudRecentSetId.
Otherwise some assertions will be violated later.
2018-03-08 12:57:05 +03:00
John Preston
ccef155f7a
Receive and track recent sticker usage date.
2018-03-07 20:43:26 +03:00
John Preston
0f901b3728
Update API and use WebDocument for inline bots.
2018-03-06 16:49:44 +03:00
John Preston
e102cb1469
Handle channelDifferenceTooLong in media and feed.
2018-02-08 12:20:54 +03:00
John Preston
9515520088
Update API scheme.
2018-02-08 12:20:52 +03:00
John Preston
65df137610
Add group/ungroup action in channel peer menu.
2018-02-08 12:20:51 +03:00
John Preston
8a56ede187
Move all (item/view/media) maps to Data::Session.
2018-02-08 12:20:49 +03:00
John Preston
97a9089ebf
Move draw / getState code to HistoryView::Message.
...
Item dimensions broken for now.
Also remove history.h from pch.
2018-02-08 12:20:48 +03:00
John Preston
4740d44159
Make HistoryView::Message a ClickHandlerHost.
2018-02-08 12:20:47 +03:00
John Preston
794e31505b
First version of feed section view.
2018-02-08 12:20:46 +03:00
John Preston
f0b2e445f6
Prepare dialogs to open feeds.
2018-02-08 12:20:46 +03:00
John Preston
6a9556d42c
Move non-settings session data to Data::Session.
...
Rename AuthSessionData to AuthSessionSettings, move data away.
2018-02-08 12:20:46 +03:00
John Preston
46612ef128
Remove Notify::userIsContactChanged().
...
Replace with Notify::peerUpdatedDelayed().
2018-02-08 12:20:45 +03:00
John Preston
ea7441ae77
Use single LEGAL file with license and copyright.
2018-01-03 13:23:14 +03:00
John Preston
8ef9ec0567
Fix glitches for transparent album preview parts.
2017-12-31 01:28:21 +03:00
John Preston
af552fb4c0
Replace base/task_queue with crl.
2017-12-31 00:28:38 +03:00
John Preston
2a409e3734
Add files from clipboard to composed album.
...
Fixes #4243 .
2017-12-29 20:02:23 +03:00
John Preston
54d6673d0b
Display photos and videos together in MediaView.
2017-12-28 13:12:07 +03:00
John Preston
1a115cc7e5
Fix file upload progress display.
...
Regression was introduced in 5d18d7c813
.
2017-12-27 21:57:37 +03:00
John Preston
5f8143e6a4
Fix build in Xcode.
2017-12-26 19:20:08 +03:00
John Preston
1fc7dabd3e
Allow media reordering when sending an album.
2017-12-26 19:20:08 +03:00
John Preston
5d18d7c813
Send album after cancel of some media uploads.
...
Also display checks when part of the album medias are uploaded.
2017-12-26 19:20:07 +03:00
John Preston
a8ac18e4fd
Save send way (album, photos, files) to settings.
2017-12-26 19:20:07 +03:00
John Preston
58d21ff916
Add album support to SendFilesBox.
2017-12-26 19:20:07 +03:00
John Preston
8e45b09083
Use different indentation for rpl operators.
...
It works better with Visual Studio IDE.
2017-12-26 19:20:07 +03:00
John Preston
ff65daa9fe
Remove special case in SendFilesBox for an image.
2017-12-26 19:20:06 +03:00
John Preston
255dbf9405
Fix indexing of shared media.
...
Add new messages to shared media index even if !loadedAtBottom().
2017-12-26 19:20:06 +03:00
John Preston
3b3a705a67
First working code for sending albums.
2017-12-26 19:20:06 +03:00
John Preston
b1f33890d6
Workaround GCC segmentation fault.
2017-12-18 19:52:58 +04:00
John Preston
37b018257e
Replace some std::shared_ptr with std::unique_ptr.
2017-12-18 14:38:14 +04:00
John Preston
14034c255e
Replace QSharedPointer with std::shared_ptr.
2017-12-18 13:07:18 +04:00