John Preston
0dc0f588c4
Don't offer sending .pdf-s as photos.
2020-12-24 13:52:38 +04:00
John Preston
ed50aa0d8e
Fix build with Qt < 5.14.
2020-11-17 17:14:21 +03:00
John Preston
b3eb7858e6
Save local drafts in scheduled / replies sections.
...
Fix inline bot switch inline in scheduled / replies sections.
2020-11-17 12:58:07 +03:00
John Preston
02eea38724
Remove color space before sending in JPG.
2020-11-16 14:22:19 +03:00
John Preston
8a9317f9e1
Download video avatars as .mp4 in media viewer.
...
Fixes #9017 .
2020-11-09 15:05:36 +03:00
John Preston
74d2313784
Build Linux version with Qt 5.15.1 in CentOS 7 docker.
2020-11-06 11:21:34 +03:00
John Preston
e4e1f7f5d6
Try creating base dir in FileWriteDescriptor.
2020-10-30 18:32:22 +03:00
John Preston
53c308c24b
Loop pinned messages in the top bar.
2020-10-30 18:32:21 +03:00
John Preston
fc92e3fadd
Add pinned messages section.
2020-10-30 18:32:20 +03:00
John Preston
a614ccad97
Correctly check media when editing files.
2020-10-30 18:32:19 +03:00
John Preston
012ebdd15e
Fix grouping of music files / just files.
2020-10-30 18:32:19 +03:00
John Preston
bb4fdde616
Fix sending many files with a comment.
2020-10-30 18:32:19 +03:00
John Preston
843fba61ee
Allow adding any amount of files in SendFilesBox.
2020-10-30 18:32:19 +03:00
John Preston
0539cc9448
Add a way to recreate SendFilesBox content.
2020-10-30 18:32:19 +03:00
John Preston
202534575b
Allow many previews in SendFilesBox.
2020-10-30 18:32:19 +03:00
John Preston
8d2fa313b7
Add setting for grouping files.
2020-10-30 18:32:19 +03:00
John Preston
c2f0bcf933
Keep first game sticker frames inside the binary.
2020-10-30 18:32:19 +03:00
John Preston
64ac6b18bf
Move SingleMediaPreview to td_ui.
2020-10-30 18:32:18 +03:00
John Preston
8b96f4c214
Move Media::Clip::Reader and FileLocation to td_ui.
2020-10-30 18:32:18 +03:00
John Preston
05eb549a3d
Move App::roundRect to Ui::FillRoundRect.
2020-10-30 18:32:18 +03:00
John Preston
b3b11bd9e7
Move PreparedFile/PreparedList to td_ui.
2020-10-30 18:32:18 +03:00
John Preston
39cf51c066
Move SendButton/EmojiButton to td_ui.
2020-10-30 18:32:18 +03:00
John Preston
cc28ba4284
Update API scheme to layer 120.
2020-10-30 18:32:17 +03:00
John Preston
719bed6e85
Move some text formatting to tg_ui:ui/text/format_values.
2020-09-30 16:29:17 +03:00
John Preston
8634c1f7f3
Move lang keys to td_lang library.
2020-09-30 12:18:52 +03:00
John Preston
e8df47c926
Show send action animations in Replies thread.
2020-09-29 19:03:30 +03:00
John Preston
1a40f2b3ef
Fix userpics display for min-loaded users.
2020-09-29 19:03:26 +03:00
John Preston
f0e1d2fd02
'base::optional_variant<' -> 'std::variant<v::null_t,'
2020-09-29 19:03:19 +03:00
John Preston
734d834a20
Replace mapbox variant with std::variant.
2020-09-29 19:03:19 +03:00
John Preston
437c9320cd
Implement progressive jpeg loading and sending.
2020-09-29 19:03:18 +03:00
John Preston
0888901d79
Try using progressive jpeg photo size.
2020-09-29 19:03:18 +03:00
John Preston
55edb3bdfe
Update API scheme to layer 119. Count replies.
2020-09-29 19:03:18 +03:00
John Preston
aa87d627c9
Allow to choose camera device in Settings.
2020-08-21 17:52:13 +04:00
23rd
b71062561a
Added ability to drag'n'drop videos in SendFilesBox.
2020-08-11 18:13:09 +04:00
John Preston
fe639078a6
Version 2.2: Fix default-night mode.
2020-07-26 16:55:04 +04:00
John Preston
1a9c241b96
Update API scheme to layer 116.
2020-07-25 11:24:11 +04:00
John Preston
8c4e8212cd
Add 'respect system dark mode' checkbox.
2020-07-22 17:18:17 +04:00
23rd
4eaba39a7c
Added drag'n'drop area to EditCaptionBox.
2020-07-20 21:44:07 +03:00
23rd
5c097887ef
Added ability to edit media in scheduled messages.
2020-07-17 18:22:38 +03:00
23rd
6c89f60679
Added edit messages with uploaded file to api_editing.
2020-07-17 18:22:38 +03:00
John Preston
9463bbd266
Fix animated stickers with wrong dimensions.
2020-07-17 08:13:45 +04:00
John Preston
8aafe6ba0e
Show only box(512,512) .webp as stickers.
2020-07-15 22:31:42 +04:00
John Preston
2f5cb33bf2
Fix finalizing media in non-active account.
2020-07-14 19:02:27 +04:00
Sean Wei
556aa28df6
Remove unused variable
...
The following are commits related to removed variables.
apiwrap.cpp
e050e27
: kSaveDraftBeforeQuitTimeout
app.cpp
113f665
: serviceImageCacheSize
boxes/auto_download_box.cpp
a0c6104
: checked(Source source, Type type)
boxes/background_preview_box.cpp
b6edf45
: resultBytesPerPixel
fe21b5a
: ms
boxes/calendar_box.cpp
ae97704
: yearIndex, monthIndex
99bb093
: ms
boxes/connection_box.cpp
f794d8d
: ping
boxes/dictionaries_manager.cpp
8353867
: session
boxes/peer_list_box.cpp
2ce2a14
: grayedWidth
boxes/peers/add_participants_box.cpp
07e010d
: chat, channel
boxes/self_destruction_box.cpp
fe9f02e
: count
chat_helpers/emoji_suggestions_widget.cpp
a12bc60
: is(QLatin1String string)
chat_helpers/field_autocomplete.cpp
8c7a35c
: atwidth, hashwidth
chat_helpers/gifs_list_widget.cpp
ff65734
: inlineItems
3d846fc
: newSelected
d1687ab
: kSaveDraftBeforeQuitTimeout
chat_helpers/stickers_dice_pack.cpp
c83e297
: kZeroDiceDocumentId
chat_helpers/stickers_emoji_pack.cpp
d298953
: length
chat_helpers/stickers_list_widget.cpp
eb75859
: index, x
core/crash_reports.cpp
5940ae6
: LaunchedDateTimeStr, LaunchedBinaryName
data/data_changes.cpp
3c4e959:clearRealtime
data/data_cloud_file.cpp
4b354b0
: fromCloud, cacheTag
data/data_document_media.cpp
7db5359
: kMaxVideoFrameArea
data/data_messages.cpp
794e315
: wasCount
data/data_photo_media.cpp
e27d2bc
: index
data/data_wall_paper.cpp
b6edf45
: resultBytesPerPixel
data/data_types.cpp
aa8f62d
: kWebDocumentCacheTag, kStorageCacheMask
history/admin_log/history_admin_log_inner.cpp
794e315
: canDelete, canForward
history/history_location_manager.cpp
60f45ab
: kCoordPrecision
9f90d3a
: kMaxHttpRedirects
history/history_message.cpp
cedf8a6
: kPinnedMessageTextLimit
history/history_widget.cpp
b305924
: serviceColor
efa5fc4
: hasForward
5e7aa4f
: kTabbedSelectorToggleTooltipTimeoutMs, kTabbedSelectorToggleTooltipCount
history/view/history_view_context_menu.cpp
fe1a90b
: isVideoLink, isVoiceLink, isAudioLink
settings.cpp
e2f54eb
: defaultRecent
settings/settings_folders.cpp
e8bf5bb
: kRefreshSuggestedTimeout
ui/filter_icon_panel.cpp
c4a0bc1
: kDelayedHideTimeoutMs
window/themes/window_theme_preview.cpp
ef927c8
: mutedCounter
-----
Modified variables
boxes/stickers_box.cpp
554eb3a
: _rows[pressedIndex] -> set
data/data_notify_settings.cpp
734c410
: muteForSeconds -> muteUntil
history/view/history_view_list_widget.cpp
07528be
: _items[index] -> view
e5f3bed
: fromState, tillState
history/history.cpp
cd3c1c6
: kStatusShowClientsideRecordVideo -> kStatusShowClientsideRecordVoice
storage/download_manager_mtproto.cpp
ae8fb14
: _queues[dcId] -> queue
storage/localstorage.cpp
357caf8
: MTP::Environment::Production -> production
2020-07-13 09:33:55 +04:00
John Preston
2df5972f68
Raise file size limit to 2000 MB.
2020-07-08 10:07:01 +04:00
John Preston
432ce4caa4
Fix crash in migration with corrupted settings.
2020-07-01 14:16:36 +04:00
John Preston
eb1845e33b
Fix crash in session destruction.
...
Also use rpl::event_stream for downloaderTaskFinished.
2020-07-01 12:26:29 +04:00
John Preston
1a69627102
Fix crash in reading saved peers.
2020-07-01 00:41:21 +04:00
Nicholas Guriev
3c0694280f
Fix -Wredundant-move
2020-07-01 00:17:05 +04:00
John Preston
dfc1712043
Fix loading locally stored self data.
2020-06-30 11:16:47 +04:00
John Preston
90f7f482ee
Take main DC and phone prefix from active account.
2020-06-29 22:14:24 +04:00
John Preston
c777f51427
Fix new settings saving.
2020-06-29 21:49:58 +04:00
John Preston
cbad993bba
Fix app start without data.
2020-06-29 21:37:56 +04:00
John Preston
76593b0f3d
Fix migrating background image.
2020-06-26 13:23:10 +04:00
John Preston
9703f7460a
Fix build on Linux.
2020-06-26 12:27:54 +04:00
John Preston
5d6a494934
Move some more settings to Core::App.
2020-06-25 16:25:53 +04:00
John Preston
0bc2bfe630
Don't allow two same accounts being logged in.
2020-06-24 13:32:07 +04:00
John Preston
4d65df6ca2
Remove legacy temp download folder.
2020-06-23 21:53:44 +04:00
23rd
e318a7d65f
Simplified ranges::find_if with ranges::any_of and ranges::none_of.
2020-06-23 21:53:43 +04:00
John Preston
f129b6b90d
Fix invalid cache settings being read.
2020-06-23 21:53:43 +04:00
John Preston
28570b45e3
Fix working with settings before Domain::started.
2020-06-23 21:53:43 +04:00
John Preston
3bb352e0e5
Fix build and working on macOS.
2020-06-23 21:53:42 +04:00
John Preston
0824d2da20
Reset some settings on full logout.
2020-06-23 21:53:42 +04:00
John Preston
2635ca33f8
Move background to global settings.
2020-06-23 21:53:42 +04:00
John Preston
997913be25
One Window::Notifications system for all sessions.
2020-06-23 21:53:42 +04:00
John Preston
83538675ce
Move a lot of settings to Core::Settings.
2020-06-23 21:53:42 +04:00
John Preston
4d6cc58f0d
Move session settings to main_session_settings.
2020-06-23 21:53:42 +04:00
John Preston
3a5ede534e
Count all accounts in Core::App().unreadBadge.
2020-06-23 21:53:41 +04:00
John Preston
357caf8007
Keep separate MTP::Config's for separate accounts.
2020-06-23 21:53:41 +04:00
23rd
3ef45f5431
Fixed starting with touchbar.
2020-06-23 21:53:41 +04:00
John Preston
c83659f0c7
Fix logouting from the passcode.
2020-06-23 21:53:41 +04:00
John Preston
bc144377c0
Support logout of a secondary account.
2020-06-23 21:53:41 +04:00
John Preston
ab5796c117
Several working accounts together.
2020-06-23 21:53:40 +04:00
John Preston
6fc5e22882
Allow several accounts in Core::App.
2020-06-23 21:53:40 +04:00
John Preston
dddd355f6c
Fix language and theme writing / reading.
2020-06-23 21:53:40 +04:00
John Preston
f450f81215
Remove non-UI calls to App::main.
2020-06-23 21:53:40 +04:00
John Preston
0ad7dcaef9
Remove MTP::MainInstance() global access point.
2020-06-23 21:53:40 +04:00
John Preston
7f09da9e32
Use MTP::Sender in Intro.
2020-06-23 21:53:39 +04:00
John Preston
0b028b959b
Move updates handling MainWidget -> Api::Updates.
2020-06-23 21:53:39 +04:00
John Preston
ea86433be5
Remove some activeAccount() calls.
2020-06-23 21:53:39 +04:00
John Preston
598fb67cdf
Remove Session::Exists() global access point.
2020-06-23 21:53:39 +04:00
John Preston
5f8d22f1f2
Remove Auth() global access point.
2020-06-23 21:53:39 +04:00
John Preston
7892ba97e6
Fix clearing storage_account files on logout.
2020-06-23 21:53:39 +04:00
John Preston
ad4afe9293
Move session data localstorage -> storage_account.
2020-06-23 21:53:39 +04:00
John Preston
fc174f742a
Move stickers code to Data::Stickers class.
2020-06-23 21:53:38 +04:00
John Preston
4b354b0928
Use Main::Session in download/upload.
2020-06-23 21:53:38 +04:00
John Preston
bdbcd8e540
Use Main::Session in entities parsing.
2020-06-08 12:05:17 +04:00
23rd
d4f2b8dd0e
Fixed ability to edit media with sticker.
...
Regression was introduced in efa4deef6a
.
2020-06-05 19:46:34 +04:00
John Preston
bfafdd5b38
Fix crash in streaming+loading of a document.
2020-06-04 12:16:44 +04:00
John Preston
f066e0f05a
Use Data::CloudImage for userpics.
2020-06-01 18:09:33 +04:00
John Preston
ae9ed820ee
Fix sticker set icons display.
2020-06-01 18:09:33 +04:00
John Preston
803593cd8d
Change Stickers::Set from value to object type.
2020-06-01 18:09:33 +04:00
John Preston
74ef8104a7
Fix photo edit caption box, remove 's' size.
2020-06-01 18:09:32 +04:00
John Preston
700d3db4cc
Correctly unload heavy parts on quit.
2020-06-01 18:09:32 +04:00
John Preston
e27d2bc2d5
Move photo data to Data::PhotoMedia.
2020-06-01 18:09:32 +04:00
John Preston
f4ed2c26ba
Save video thumbnail location to local storage.
2020-06-01 18:09:32 +04:00
John Preston
3c9ca2eb94
Load and show video thumbnails in the panel.
2020-06-01 18:09:31 +04:00
John Preston
33c1c48ad9
Update API scheme to layer 114.
2020-06-01 18:09:31 +04:00
John Preston
58f82620e0
Simplify media overview layouts.
2020-06-01 18:09:31 +04:00
John Preston
fb322b5fc5
Use empty Storage::Cache::Key as nullopt.
2020-06-01 18:09:31 +04:00
John Preston
cbb9657044
Fix download task finalizing.
2020-06-01 18:09:30 +04:00
John Preston
3797753d16
Support different location types for thumbnails.
2020-06-01 18:09:30 +04:00
John Preston
956c3af0ae
Start DocumentData::thumbnail move to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
ff6365ec72
Fix crash in still downloaded ~DocumentData.
2020-06-01 18:09:30 +04:00
John Preston
97bab388ea
Use rpl for file download progress notifications.
2020-06-01 18:09:30 +04:00
John Preston
33f4946242
Start using document bytes from DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
bdd3c51ab8
Move inline thumbnail image to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
7db53599e8
Use Data::DocumentMedia to store good thumbnails.
2020-06-01 18:09:29 +04:00
John Preston
6f760d513e
Add a checkbox to disable taskbar flash.
...
Also add ability to set urgent flag for the window on Linux.
Fixes #223 , fixes #897 , fixes #906 .
2020-05-12 14:16:24 +04:00
John Preston
36997f084a
Automatically load and apply old emoji set by id.
2020-05-08 11:22:22 +04:00
VictorienXP
85fcec2fb5
Add .opus and .oga files as song formats
2020-04-21 14:04:51 +04:00
John Preston
2ad48f18f2
Use only safe file saving in localstorage.
2020-04-02 18:31:15 +04:00
John Preston
49111814e4
Add fallback codepath for QSaveFile::open failure.
2020-03-30 13:46:58 +04:00
John Preston
4881981cf6
Enable / disable side bar based on filters.
2020-03-27 20:36:03 +04:00
John Preston
d5bd9fa54d
View filter box, removing chats and chat types.
2020-03-27 20:36:02 +04:00
John Preston
c83e297554
Implement dice media display.
2020-03-27 20:36:02 +04:00
John Preston
71f7aae948
Replace dialogs mode with filters.
2020-03-27 20:36:01 +04:00
John Preston
6777b20453
Beta version 1.9.20: Fix build on GCC.
2020-03-14 14:11:41 +04:00
John Preston
6bf3dd10c1
Make checked read of sticker sets order.
...
In case local data is corrupted previously it lead to OOM crash.
2020-03-13 22:53:59 +04:00
John Preston
14aa455164
Fix freeze in complex file location saving.
...
Fixes #6986 .
2020-03-13 22:53:59 +04:00
John Preston
6fbd0d7deb
Fix logout on second relaunch.
...
Fixes #7279 .
2020-02-25 07:58:29 +04:00
23rd
bb8aead078
Added sequential background dictionary loader.
...
- Moved the Loader from the dictionaries manager to the spellchecker
common space as a DictLoader.
2020-02-24 18:48:33 +03:00
23rd
efdf5f1767
Moved producer of state description to CloudBlob.
2020-02-24 18:48:33 +03:00
23rd
8ca0b614d7
Moved loader of emoji sets and dictionaries to CloudBlob.
2020-02-24 18:48:33 +03:00
23rd
704dcc8d65
Moved emoji sets and dictionaries loader states to CloudBlob.
...
- Moved CloudBlob to second namespace.
2020-02-24 18:48:33 +03:00
23rd
9f4d05b04c
Moved emoji sets from lib_ui. Added parent struct to storage_cloud_blob.
2020-02-24 18:48:33 +03:00
23rd
08cd7450ff
Added storage/storage_cloud_blob.
...
- This file is needed to store same code parts related
to management of dictionaries and emoji sets.
- Moved extracting of zip files to storage_cloud_blob.
2020-02-24 18:48:33 +03:00
John Preston
60612635ef
Use QSaveFile to write sensitive settings / data.
2020-02-24 18:54:16 +04:00
John Preston
3bb9e8c7eb
Fix power outage logout only by fsync.
2020-02-14 18:12:08 +04:00
John Preston
555fe70df3
Don't delete old localstorage file copies.
2020-02-13 18:39:44 +04:00
John Preston
356e3c6907
Enable night mode by default on Mac App Store.
2020-02-11 16:00:19 +04:00
23rd
7b36c91e0d
Fixed insertion of 11th image from clipboard in SendFilesBox.
2020-01-28 16:56:03 +03:00
John Preston
1bcde1b55c
Pass cdn_supported flag to upload.getFile.
2020-01-23 10:46:57 +03:00
23rd
e266dc153b
Implemented ability to add more than 1 file to albums via SendFilesBox.
2020-01-23 10:09:34 +03:00
23rd
d1d5312ead
Moved searching of sticker mimes to single place.
2020-01-23 10:09:33 +03:00
23rd
5f8c2f90ff
Added button to add new files in SendFilesBox to album only.
2020-01-23 10:09:33 +03:00
23rd
efa4deef6a
Moved media editing via FileDialog to separate static method.
2020-01-23 10:09:33 +03:00
John Preston
960f50824d
Fix one more crash in CDN file download.
...
The sessionTimedOut could remove a session right between a request
for a file part and a request for additional cdn file hashes.
In this case requestData.sessionIndex was not updated and this
was leading to an assertion violation in changeRequestedAmount.
2020-01-22 16:13:50 +03:00
John Preston
2d7f6fc2e7
Removed old lib_storage sources.
2020-01-21 18:47:57 +03:00
John Preston
98bc7ce49b
Revert "Pass cdn_supported flag to upload.getFile."
...
This reverts commit 7751f383ca
.
2020-01-20 13:39:18 +03:00
John Preston
12873f8be0
Fix crash in CDN file download.
2020-01-20 13:04:12 +03:00
John Preston
7751f383ca
Pass cdn_supported flag to upload.getFile.
2020-01-20 13:01:38 +03:00
John Preston
d24735b217
Fix possible crash in CDN file loading.
2020-01-17 17:45:43 +03:00
John Preston
616957e46f
Add file size limit to autoplay settings.
2019-12-24 13:09:04 +03:00
John Preston
fa4d8f2fbd
Support priorities in download tasks.
2019-12-23 12:37:03 +03:00
John Preston
8ae6156477
Fix video quality when opening from chat.
2019-12-23 11:10:11 +03:00
John Preston
ae8fb14f9e
Use 8 seconds timeout for request duration.
2019-12-06 10:05:38 +03:00
John Preston
7fb24d77c0
Check request duration when adding sessions.
2019-12-05 16:38:28 +03:00
John Preston
e426f2895b
Add download sessions if it works fast enough.
2019-12-05 14:46:28 +03:00
John Preston
ee94e78533
All mtproto downloads using DownloadMtprotoTask.
2019-12-05 11:32:33 +03:00