John Preston
a547f80ae9
Rename Window::Controller to Window::SessionController.
2019-06-06 13:21:40 +03:00
John Preston
8c67a4b991
Strip auto-hashtag in support mode message editing.
2019-06-05 21:40:21 +03:00
John Preston
08bddc5579
Move messages data to AuthSession.
2019-05-01 16:11:42 +04:00
23rd
e1000b79a3
Fixed display of file sizes with invalid dimensions when edit media.
2019-04-25 14:11:07 +04:00
23rd
5187e6dc58
Added display of image dimensions instead of 0 bytes when is doc.
2019-04-11 10:11:09 +04:00
23rd
c21f5712f8
Disabled pasting images with bad size from clipboard for albums.
...
- Slightly refactored.
2019-04-11 10:10:25 +04:00
23rd
c6eccc655f
Disabled sending images with bad size from remoteContent for albums.
2019-04-10 11:40:16 +04:00
23rd
3767483977
Added filename generation when edit media with non-local file.
2019-04-10 11:34:43 +04:00
23rd
fb847135b5
Added ability to edit GIFs.
...
- Added to Media::Clip::MakeReader new constructor to create
animated preview with remoteContent.
2019-04-09 17:17:31 +04:00
23rd
839feed329
Added delay for clicked callback of edit media button.
2019-04-09 17:15:48 +04:00
23rd
37af963717
Fixed work with _msgIdToEdit in FileLoadTask.
...
- Added check is allowed media editing in paintEvent.
- Fixes #5885 .
2019-04-06 11:24:11 +04:00
23rd
92d10fd34c
Redesigned edit media button. Slightly refactored.
...
- Added minimal height of thumbs.
- Removed unused _statusw.
2019-04-04 20:51:00 +04:00
23rd
25e0e4b5d3
Fixed edit single media to photo with bad dimensions.
2019-04-04 20:23:44 +04:00
23rd
a9fa49e372
Disabled edit media with gif files.
2019-04-04 11:02:42 +03:00
23rd
2cb69f0c2b
Added ability to edit album items with remoteContent.
2019-04-04 11:01:10 +03:00
23rd
1da9bfc643
Removed unnecessary making thumbnail of remoteContent.
2019-04-04 10:13:13 +03:00
23rd
78227cd947
Fixed MIME checking for files when edit media.
2019-04-04 10:13:11 +03:00
John Preston
7f598e358a
Fix edit media preview for Retina screen.
2019-04-04 00:08:05 +04:00
23rd
48362cd4bc
Added more appropriate phrase for invalid files in edit media.
2019-04-03 20:08:27 +03:00
23rd
84858b8940
Added MEDIA_NEW_INVALID error handler. Disabled edit media with webp.
2019-04-02 20:28:54 +03:00
23rd
92f95fa9eb
Fixed crash when edit album item with photo with invalid dimensions.
...
- Added InformBox for invalid files.
2019-04-02 18:14:12 +04:00
23rd
5d8888bb8b
Refactored code.
...
- Refactored passing message id to edit media.
- Removed get/setEditMedia from mainwidget.
- Combined onEditMedia and onSendFileConfirm in single method.
- Added argument in FileLoadTask to pass message id to edit media.
- Renamed flags in apiwrap.
- Added check for allowing edit media when use clipboard.
- Removed unused fileIsValidForAlbum.
- Removed LOGs.
- Replaced _isNotAlbum with _isAlbum.
- Removed _viaRemoteContent.
- Removed _newMediaPath.
- Added empty() to MessageGroupId.
2019-04-02 18:14:12 +04:00
23rd
4988d21819
Added ability to edit media via clipboard and remoteContent.
...
- Moved thumb updating to updateEditPreview() method.
- Added _viaRemoteContent var to check when we use remoteContent.
- Added setMimeDataHook to handle clipboard content.
2019-04-02 18:14:12 +04:00
23rd
468975e9f3
Added to AbstractBox ability to center box when changing dimensions.
...
- Added using of force center for edit_caption_box.
2019-04-02 18:14:12 +04:00
23rd
6e69069ba2
Added Ctrl+E and Ctrl+O shortcut to edit media.
2019-04-02 18:14:12 +04:00
23rd
741501d1d9
Removed sending gif attributes when edit media.
...
- Removed handling gif for render animated preview.
2019-04-02 18:14:12 +04:00
23rd
89e1291d86
Added confirming only images and videos when edit album item.
...
- Added hiding of checkbox when edit album item.
2019-04-02 18:14:12 +04:00
23rd
25e3674819
Added allowsEditMedia() to Media. Slightly refactored.
2019-04-02 18:14:12 +04:00
23rd
820c7ba84e
Added checkbox to send photo as file for edit media.
2019-04-02 18:14:12 +04:00
23rd
6735605f21
Added animated gif preview when users edits media.
2019-04-02 18:14:12 +04:00
23rd
d5a2daa8c9
Refactored edit_caption_box.
2019-04-02 18:14:12 +04:00
23rd
25177d9022
Added updating of thumbnails when user edits media.
2019-04-02 18:14:12 +04:00
23rd
be58e23775
Init edit media.
2019-04-02 18:14:11 +04:00
John Preston
a34e998c42
Handle fwd_from without a link to the account.
2019-03-24 12:12:42 +04:00
23rd
5d04842a80
Refactored edit_caption_box.
2019-03-22 13:36:47 +04:00
23rd
59c73a4814
Fixed drawing of custom thumbnails in edit_caption_box.
2019-03-22 13:36:47 +04:00
John Preston
fe618bd652
Use crl::time/now instead of TimeMs/getms.
2019-02-19 11:06:33 +04:00
John Preston
7c1704e68b
Fix crash in EditCaptionBox.
2019-02-17 13:51:53 +04:00
John Preston
032694ad9e
Move files to media/audio and media/clip.
2019-02-13 15:41:33 +03:00
John Preston
a1baa23a52
Use both thumbnails in photos and documents.
...
Fixes #5602 .
2019-01-28 13:10:45 +03:00
John Preston
c5a41e1f55
Divide data/data_peer and remove from PCH.
2019-01-17 12:21:29 +04:00
John Preston
6d9f40db30
Update API scheme to layer 91.
2018-12-21 17:09:30 +04:00
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
0a754b8982
Adding emoji in SendFilesBox and EditCaptionBox.
2018-11-22 16:48:50 +04:00
John Preston
9f5b09c263
Add emoji autocomplete to all fields.
2018-11-21 14:09:46 +04:00
John Preston
5f665b8ecb
Add a comment field to ShareBox.
2018-11-04 15:58:32 +04:00
John Preston
595134cab5
Move image-related modules to ui/image/.
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
c5d20a21f7
Beta version 1.4.4: Correct caption limit.
2018-10-17 14:43:18 +03:00
John Preston
0c8709ca5f
Replace App::self() with Auth().user().
...
Always have self Auth().user() when AuthSession exists.
2018-09-19 19:22:13 +03:00