Ilya Fedin
1b8352f878
Fix image format mime type filter
2022-12-28 09:56:16 +04:00
John Preston
1bb6b07515
Fix build with GCC.
2022-12-26 14:24:08 +04:00
John Preston
c647afec02
Support clipboard reading for attach menu bots.
2022-12-26 14:24:07 +04:00
John Preston
c7c652a277
Improve icons and phrases.
2022-12-26 14:24:06 +04:00
John Preston
2ce8094932
Add spoiler toggle to three dot menu in SendFilesBox.
2022-12-26 14:24:06 +04:00
John Preston
bd1d7f4d96
Allow apply spoiler when editing to another media.
2022-12-26 14:24:05 +04:00
John Preston
5bee6310c0
Allow sending media with spoilers.
2022-12-26 14:24:05 +04:00
Ilya Fedin
36de2e98d4
Get supported image extensions from QImageReader
2022-12-26 14:23:23 +04:00
Ilya Fedin
9fba9048af
Use the same check for drag'n'drop image type as for file dialog
...
The code path when choosing an image in file dialog tries to read a QImage with Images::Read and then only checks that mime type starts with image/ in ValidPhotoForAlbum
Core::FileIsImage and QImageReader::canRead checks should provide the same behavior
2022-12-26 14:23:23 +04:00
Ilya Fedin
3991be752c
Replace various QDesktopService::openUrl with File::OpenUrl for correct operation on Linux
...
This also reverts commit bb94507af1
.
2022-12-23 14:02:25 +04:00
23rd
2acedca6b7
Replaced some qstr with u""_q literal.
2022-11-29 14:12:50 +03:00
23rd
3467fe226f
Added ability to send webp as compressed image.
2022-11-22 00:26:49 +00:00
Ilya Fedin
68ad56db79
Use QtWaylandCompositor for webview embedding on Linux
2022-11-01 19:33:46 +04:00
John Preston
9348039313
Track unread posts in forums inside RepliesList-s.
2022-11-01 19:25:36 +04:00
John Preston
0d985b5745
Don't focus main button on progress show.
2022-11-01 19:25:36 +04:00
John Preston
d4cdd67128
Fix RTL text in bot attach webview main button.
2022-11-01 19:25:36 +04:00
John Preston
3722e55b67
Support topic on-the-fly creation.
2022-11-01 19:25:35 +04:00
John Preston
e5f2d83548
Support new rounding in bot inline keyboards.
2022-11-01 19:25:35 +04:00
John Preston
dd52c53ec0
Allow more file attach layout customization.
2022-11-01 19:25:34 +04:00
John Preston
ba2f92906b
Implement new bubble rounding.
2022-11-01 19:25:34 +04:00
John Preston
749fb52113
Implement animated spoilers.
2022-09-18 16:52:30 +04:00
John Preston
f8e22210e7
Move Webm sticker to UnwrappedMedia.
2022-08-04 13:35:34 +03:00
23rd
2d75f9e752
Fixed build with Xcode.
2022-07-27 12:49:52 +03:00
John Preston
af54721f07
Disable attach bot share phone command for now.
2022-07-26 20:12:14 +03:00
John Preston
4ca6af33d4
Support web_app_request_phone attach bot requests.
2022-07-26 20:12:11 +03:00
John Preston
c1e7e63677
Support custom popups in attach bots.
2022-07-26 20:12:09 +03:00
John Preston
0a81246502
Show correct error box when sending file > 4GB.
2022-06-16 13:48:11 +04:00
John Preston
df17f20a47
Support attach bot menu / reload / settings.
2022-06-03 20:07:33 +04:00
John Preston
b1dd3b2a19
Better support for web_app_open_link.
2022-05-26 13:08:11 +04:00
John Preston
bbaedc1952
Support attach bot native back button.
2022-05-20 20:04:05 +04:00
John Preston
87662de2a6
Support web_app_open_tg_link / web_app_open_invoice.
2022-05-19 17:27:03 +04:00
John Preston
6dedf7c63e
Update API scheme to layer 143.
2022-05-19 17:27:02 +04:00
John Preston
ce79c1f0c4
Handle "web_app_request_theme" event in WebView.
2022-04-21 10:47:21 +04:00
John Preston
d4cb56a73d
Custom scroll bar in WebKit / Chromium.
2022-04-12 23:01:37 +04:00
John Preston
d15ff46eb4
Fix webview initialization on GCC.
2022-04-08 23:15:37 +04:00
John Preston
94c6793e92
Add bot menu button with webview open support.
2022-04-07 16:31:07 +04:00
John Preston
73c5988e7e
Allow opening external pages from attach bots.
2022-04-06 10:55:05 +04:00
John Preston
0e75204762
Support native button in bot webview.
2022-04-05 16:31:15 +04:00
John Preston
b1e66279d5
Update API scheme on layer 140.
2022-03-31 13:24:13 +04:00
John Preston
b38ac32898
Allow removing a bot from attach menu.
2022-03-30 12:23:06 +04:00
John Preston
72ae2f0269
Support custom attach bot icons.
2022-03-30 12:23:06 +04:00
John Preston
273f2f7ce9
Prolong bot attach webview.
2022-03-30 12:23:06 +04:00
John Preston
c6ded00461
Move webview attach code to a separate module.
2022-03-30 12:23:05 +04:00
John Preston
aed1904b4c
Support theming for webview-s (payments, attach).
2022-03-30 12:23:05 +04:00
John Preston
df15ff9f8e
Update API scheme on layer 140.
2022-03-30 12:23:05 +04:00
John Preston
1d8aac26ce
Proof of concept webview attach menu support.
2022-03-30 12:23:05 +04:00
John Preston
32d09f189b
Use rpl::empty instead of rpl::empty_value().
2022-03-11 09:56:29 +04:00
John Preston
6805259f74
Don't recompress some JPEGs when sending as photos.
...
If JPEG is saved in progressive mode and has bpp <= 4
and max(width, height) <= 1280 then we send original bytes.
2022-03-09 17:37:51 +04:00
23rd
f74a75da75
Fixed display photo with modifications as file in attach media preview.
2022-03-04 18:58:07 +03:00
John Preston
8e749173de
Render webm stickers in StickersListWidget.
2022-01-28 19:10:07 +03:00
John Preston
20dbf18106
Init webm player for sticker set thumbnails.
2022-01-28 19:10:07 +03:00
John Preston
8b7d2c880e
Support rendering Webm videos with alpha.
2022-01-28 19:10:07 +03:00
John Preston
3ff17a8789
Refactor image transformation interfaces.
2022-01-21 15:33:44 +03:00
John Preston
e4ac810773
Allow exactly 1x20 aspect in photos.
2021-11-02 09:59:06 +04:00
John Preston
19ce1edc16
Use base::SafeRound instead of std::round.
...
Previous assertion violations because of NaN from std::round were
in video streaming, see commits 27d58ba07b
, 8f5830d520
.
Now the crashes happened in the ConvertScale() call from a background
thread when preparing an image from clipboard for sending to a chat.
2021-09-27 12:13:57 +04:00
John Preston
cbfe57c51d
Custom colors in history_view_document module.
2021-09-06 13:13:26 +03:00
23rd
cba0ebce6e
Fixed size of animated preview in boxes.
2021-07-20 12:20:30 +03:00
Ilya Fedin
c5867e2293
Fix build with clang
2021-07-20 10:34:03 +03:00
John Preston
42eb74d07a
Version 2.8.9: Fix GIF caption edit.
2021-07-16 10:10:58 +03:00
23rd
47a4f4229d
Added ability to hide attach controls.
2021-07-13 22:15:22 +03:00
23rd
7cf5e6d94f
Added ability to set controls type for single previews.
2021-07-13 22:15:22 +03:00
23rd
5431541694
Added AbstractSinglePreview.
2021-07-13 22:15:22 +03:00
23rd
c1e86418c2
Added ability to generate single media preview from history item.
2021-07-13 22:15:22 +03:00
23rd
86db29cec7
Added AbstractSingleMediaPreview.
2021-07-13 22:15:22 +03:00
23rd
19139a9a5f
Added ability to generate single file preview from history item.
2021-07-13 22:15:22 +03:00
23rd
9509a00664
Added AbstractSingleFilePreview.
2021-07-13 22:15:20 +03:00
Ilya Fedin
79cc797aff
Fix -Wunused-variable warnings
2021-07-13 21:43:34 +03:00
23rd
f1669674d8
Moved formatting of image size text to single place.
...
Fixed wrong size display on retina screens.
Replaced "x" with special character.
2021-07-09 13:15:31 +03:00
23rd
cab8a52f8f
Fixed visual glitch in image size text from SendFilexBox.
...
Regression was introduced in f52c6a6daa
.
2021-07-09 13:15:31 +03:00
23rd
cdafd8f171
Fixed width of preview for small media in SendFilesBox.
...
Regression was introduced in 42d4fdb89f
.
2021-07-06 12:13:06 +03:00
23rd
116aa01e51
Refactored column width in SingleMediaPreview.
2021-07-06 12:13:06 +03:00
23rd
edfd9bedc1
Improved style for controls in EditCaptionBox.
2021-07-06 12:13:06 +03:00
23rd
f52c6a6daa
Improved style for controls in SendFilesBox.
2021-07-06 12:13:06 +03:00
23rd
18154e403a
Added ability to open photo editor in SendFilesBox with left-click.
2021-07-06 12:13:06 +03:00
23rd
6975b04e6b
Fixed triggering of pressed buttons in album preview.
2021-07-06 12:13:06 +03:00
23rd
3ce315111f
Added draft menu to SendFilesBox to open photo editor.
2021-07-06 12:13:05 +03:00
23rd
4d72d20398
Added ability to send modified images.
2021-07-06 12:13:04 +03:00
23rd
cfbbce26c4
Added suitable name for floating badge colors.
2021-06-09 09:19:27 +04:00
23rd
690fbe83fd
Unified and moved to single place generating of song name from SongData.
2021-05-31 08:54:22 +04:00
23rd
a429500b57
Fixed first animation of album thumbs in SendFilesBox on Retina screens.
2021-05-30 23:39:55 +03:00
Ilya Fedin
c0c10689a1
Get rid of deprecated ranges::view usage
2021-03-13 19:14:58 +03:00
23rd
6c0553f4d6
Returned default icon color for songs without cover art.
...
Related commit: 9b9531d279
.
2021-01-29 18:24:52 +03:00
John Preston
0d0a79b0b5
Revert "Fixed adding caption to grouped files."
...
This reverts commit 5277080115
.
When sending an album of files each one of them can have its own
caption that will be shown below the file.
A caption for the whole album (in case of media albums) is added
to the first album item. In case of media albums this caption is
displayed under the whole album mosaic. But in case of an album
of files this caption will be displayed under the first file,
between the first and the second file of the album. This is not
what user can expect when he adds a caption for an album.
So we will send it as a separate comment, like it was done before.
2021-01-26 12:15:54 +04:00
23rd
9b9531d279
Replaced icon color for songs with bright one.
2021-01-24 10:41:10 +03:00
23rd
5277080115
Fixed adding caption to grouped files.
...
Fixed #10192 .
2021-01-22 16:53:59 +04:00
23rd
cf0cde6e83
Added ability to show song cover in EditCaptionBox and SendFilesBox.
2021-01-11 22:46:56 +03:00
23rd
42d4fdb89f
Fixed preview display of small media in SendFilesBox.
2020-11-05 17:51:28 +03:00
John Preston
5cc1871f2f
Fix caption/comment label in SendFilesBox.
2020-11-02 11:26:39 +03:00
John Preston
3dbc131b98
Show pin icon in pinned messages.
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
c4af731b19
Wrap messageActionGeoProximityReached service message.
2020-10-30 18:32:19 +03:00
John Preston
263d6a30f2
Improve grouped files layout in chat.
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
0d37949e74
Improve SendFilesBox previews layout.
2020-10-30 18:32:19 +03:00
John Preston
d7fe2948ac
Add edit/remove buttons to Single[File|Media]Preview.
2020-10-30 18:32:19 +03:00
John Preston
5589f51369
Allow delete / replace items in SendFilesBox.
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