John Preston
d1a9d3992b
API scheme updated to layer 76.
2018-02-08 12:20:49 +03:00
John Preston
2dd2ad5cdb
Replace peerMessagesUpdated with notifications.
2018-02-08 12:20:49 +03:00
John Preston
04c8c95634
Use notify* instead of mark* in Data::Session.
2018-02-08 12:20:49 +03:00
John Preston
8a56ede187
Move all (item/view/media) maps to Data::Session.
2018-02-08 12:20:49 +03:00
John Preston
7425e80f05
Use HistoryMedia as view, add Data::Media.
2018-02-08 12:20:48 +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
bee474f6e9
Remove history_item and layout from pch.
...
Also move some code to separate modules.
Also create history item views by Window::Controller.
2018-02-08 12:20:47 +03:00
John Preston
4740d44159
Make HistoryView::Message a ClickHandlerHost.
2018-02-08 12:20:47 +03:00
John Preston
062b0b2165
Save item views in App::*Item() variables.
...
Also remove App::contextItem.
Also use owning pointers for history context menus.
2018-02-08 12:20:47 +03:00
John Preston
8060cb7426
Start HistoryView::Message class for item view.
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
50b120bc22
Fix glitch in single column back button click.
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
782e70b171
Support basic feed display in chats list.
2018-02-08 12:20:46 +03:00
John Preston
9d2239291d
Add support for pinned feeds management.
2018-02-08 12:20:46 +03:00
John Preston
a2891807f8
Prepare dialogs to hold a history or a feed.
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
724fe65d72
Start feeds support.
2018-02-08 12:20:45 +03:00
John Preston
46612ef128
Remove Notify::userIsContactChanged().
...
Replace with Notify::peerUpdatedDelayed().
2018-02-08 12:20:45 +03:00
John Preston
139ef5411a
Prepare code for dialogFeed handling.
2018-02-08 12:20:45 +03:00
John Preston
ac57000437
Move contacts list loading to ApiWrap.
2018-02-08 12:20:45 +03:00
John Preston
31234cb487
API scheme updated to layer 75.
2018-02-08 12:20:45 +03:00
John Preston
05e36a064f
API scheme updated to layer 74.
2018-02-08 12:20:45 +03:00
John Preston
f88cbf3d4b
Fix crash in case of incorrect Text entities.
2018-02-08 12:20:45 +03:00
John Preston
7814ee0f7a
Fix building crashpad for macOS. Update instructions.
...
Some tests were disabled by a crashpad patch because the changes to make
them work with new SDK are relatively big and no need to backport them.
Fixes #4353 .
2018-02-08 11:27:50 +03:00
John Preston
55e56a6788
Alpha version 1.2.8.
...
- Bug fixes and other minor improvements.
2018-01-03 13:46:01 +03:00
John Preston
ea7441ae77
Use single LEGAL file with license and copyright.
2018-01-03 13:23:14 +03:00
John Preston
2868899d81
Fix possible assertion violation.
...
Allow removing local HistoryItem's after the album was already sent.
2018-01-03 12:06:02 +03:00
John Preston
54dd05c556
Improve crash debug information.
2018-01-03 11:23:34 +03:00
John Preston
6b25160e3f
Don't paint QPixmap-s in theme preview icons.
2018-01-02 22:23:54 +03:00
John Preston
0ef3e19bc2
Use QImage instead of QPixmap for theme preview.
...
Working with QPixmap from non-main thread is not defined.
2018-01-02 22:10:49 +03:00
John Preston
e89350d4b7
Reuse resample code from FFMpegLoader for video.
...
AbstractAudioFFMpegLoader used in FFMpegLoader and ChildFFMpegLoader.
2018-01-02 20:22:13 +03:00
John Preston
95399bef2b
Improve swresample library usage.
...
It looks like different AVFrame-s can have different audio encoding
parameters, so now we setup/re-setup swr context using parameters
from current audio frame. Hopefully it will fix some audio crashes.
2018-01-02 19:18:53 +03:00
John Preston
06c724df01
Clear callbacks async in MTP::Instance.
...
Also fix previous build.
2018-01-02 16:44:12 +03:00
John Preston
3325106837
Add some debug information for crashes.
2018-01-01 23:23:18 +03:00
John Preston
9c72470c17
Fix possible crash in player closing.
2018-01-01 22:12:38 +03:00
John Preston
94cf307ae0
Alpha version 1.2.7.
...
- Use fast reply button in group chats.
- Select a message you want to reply to
by pressing Ctrl+Up and Ctrl+Down.
2017-12-31 17:55:09 +03:00
John Preston
2cc1fde5e4
Remove thumb glitch when uploading files.
2017-12-31 15:21:08 +03:00
John Preston
6796ac688a
Apply web page media updates.
2017-12-31 12:55:08 +03:00
John Preston
9551cfaf9b
Use more specific color keys for media overview parts.
...
File icons and radial animations should use derived keys instead of msgInBg.
Fixes #4246 .
2017-12-31 01:28:25 +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
ae7e5be5cd
Add fast reply button in groups.
2017-12-30 21:54:15 +03:00
Matthew Tran
74b126f309
Add reply shortcut
2017-12-30 21:52:30 +03:00
John Preston
26e023058c
Version 1.2.6.
...
- Grouped Photos. Group media into an album when sharing multiple photos and videos.
Choose the exact order of media you send.
2017-12-30 13:13:48 +03:00
John Preston
6236590ca4
Fix SendFilesWay radiobuttons when adding media.
...
Also add /LTCG flag for static libraries Release builds on Windows.
2017-12-30 00:06:43 +03:00
John Preston
ea51f976f2
Alpha version 1.2.5: Workaround GCC 7.2 ICE.
2017-12-29 21:47:49 +03:00
John Preston
719f3428ec
Alpha version 1.2.5:
...
- When viewing a photo from an album, you'll see other pictures
from the same group as thumbnails in the lower part of the screen.
- When composing an album paste additional media from the clipboard.
- Bug fixes and other minor improvements.
2017-12-29 21:21:57 +03:00
John Preston
2df4d19474
Move changelogs from ApiWrap to a separate module.
2017-12-29 21:17:07 +03:00
John Preston
2a409e3734
Add files from clipboard to composed album.
...
Fixes #4243 .
2017-12-29 20:02:23 +03:00
John Preston
0171a4e874
Handle click on group thumb item in MediaView.
2017-12-29 17:58:53 +03:00
John Preston
59e5ffe743
Don't insert mime text in field for url list.
...
Fixes #4241 .
2017-12-29 17:58:32 +03:00
John Preston
2bcbb5a5be
Display group / userpic thumbnails in MediaView.
2017-12-29 16:44:36 +03:00
John Preston
5b4694a4eb
Move text options constant to a separate module.
...
Also start MediaView group thumbs code.
2017-12-28 16:06:06 +03:00
John Preston
54d6673d0b
Display photos and videos together in MediaView.
2017-12-28 13:12:07 +03:00
John Preston
e07a7a4b4c
Improve phrases. No Restricted Users in channels info.
2017-12-27 22:44:04 +03:00
John Preston
f2d11e7432
Fix video grouped thumb on Retina displays.
2017-12-27 22:16:26 +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
a00941f7ce
Update crl and libtgvoip submodules.
2017-12-27 21:49:08 +03:00
John Preston
634d21e486
Fix animation in album reordering.
2017-12-27 14:00:32 +03:00
John Preston
95d8742e3c
Fix round corners on Retina displays.
2017-12-27 13:08:18 +03:00
John Preston
bd8dee0972
Fix crash in audio player hiding.
2017-12-27 10:18:09 +03:00
John Preston
b34099f49e
Alpha version 1.2.4: Fix phrases and box cursor.
2017-12-26 20:49:04 +03:00
John Preston
0380e66c30
Alpha version 1.2.4: Fix build for old OS X versions.
2017-12-26 19:53:51 +03:00
John Preston
907b6f0a78
Alpha version 1.2.4.
...
- Group media into an album when sharing multiple photos and videos.
- Bug fixes and other minor improvements.
2017-12-26 19:20:08 +03:00
John Preston
21f4bbbe7b
Update kicked count in Channel Info box.
2017-12-26 19:20:08 +03:00
John Preston
69d9072ff0
Allow fast admin removing in supergroups/channels.
2017-12-26 19:20:08 +03:00
John Preston
d5ae9bcba2
Close box when showing a layer section from it.
2017-12-26 19:20:08 +03:00
John Preston
86c0dfb295
Read "participants_count" field from c_channel().
2017-12-26 19:20:08 +03:00
John Preston
01821c30e5
Fix message field focus loss in Saved Messages.
2017-12-26 19:20:08 +03:00
John Preston
7f66e0fdfe
Hide remove member button for supegroup admins.
2017-12-26 19:20:08 +03:00
John Preston
2569df9e5a
Rename some Ui methods.
...
myEnsureResized -> Ui::SendPendingMoveResizeEvents.
myGrab -> Ui::GrabWidget.
myGrabImage -> Ui::GrabWidgetToImage.
2017-12-26 19:20:08 +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
4e8f5541af
Fix caption editing in grouped media.
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
a6c15217c0
Fix grouped layout algorithm to match other apps.
2017-12-26 19:20:07 +03:00
John Preston
57351dd42a
Remove QTextLayout that appears to be not needed.
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
44014e62ba
Move EditCaptionBox to a separate module.
2017-12-26 19:20:06 +03:00
John Preston
ff65daa9fe
Remove special case in SendFilesBox for an image.
2017-12-26 19:20:06 +03:00
John Preston
ec515080b5
Improve saved messages search results display.
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
aebb40dc1e
Fix volume control disappearing in audio player.
2017-12-26 19:20:06 +03:00
John Preston
b20c2b4774
Always allow group admins to edit invite link.
...
Show Group Info even if supergroup admin can't edit information.
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
Friedrich von Never
711aa51046
Fix handling of dashes in the style directory path
...
Now Telegram Desktop could be built if a path to the source directory
contains dashes.
2017-12-26 19:16:11 +03:00
John Preston
4d54cf1370
Update crl submodule.
2017-12-19 10:33:47 +04:00
John Preston
e023092744
Use RectPart(s) instead of ImageRoundCorner(s).
2017-12-18 21:54:11 +04:00
John Preston
2e421e8aed
Allow unicode quotes as markdown entry separators.
...
Fixes #3867 .
2017-12-18 21:06:44 +04:00
John Preston
afe9d38c48
Don't ruin links by markdown parsing.
...
Fixes #3851 .
2017-12-18 20:49:40 +04:00
John Preston
3f751bfbb0
Activate window on dropEvent.
2017-12-18 20:25:24 +04:00
John Preston
b1f33890d6
Workaround GCC segmentation fault.
2017-12-18 19:52:58 +04:00
John Preston
92333e982c
Move message components to history_item_components.
...
Also fix channel signatures rendering.
2017-12-18 19:52:36 +04:00
John Preston
16ca2d39c5
Fix _height value in inline bot result Gif layout.
...
This fixes render glitches in GIFs column with opened MediaView.
2017-12-18 18:10:24 +04:00
John Preston
977dee3599
Fix fast sharing from channels.
...
Grouped flag is only allowed for grouped media in forward requests.
Fixes #4198 .
2017-12-18 17:29:48 +04:00
John Preston
546766fb13
Update FullMsgId context in HistoryMedia links.
2017-12-18 17:13:41 +04:00
John Preston
ddf4a36bdc
Remove mtproto/session.h from precompiled header.
2017-12-18 16:40:15 +04:00
John Preston
fa3a76b3d8
Fix layout bug in grouped media rendering.
...
Also remove st::mediaPadding.
2017-12-18 15:40:43 +04:00
John Preston
d5de064019
Shuffle code around a bit.
...
Crash reports point to addToUnreadMentions() call being corrupted.
New reports could show is it responsible or setLastMessage() call.
2017-12-18 15:17: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
John Preston
cbbccd0364
Hide history visibility edit for public groups.
2017-12-18 10:18:51 +04:00
John Preston
b8204a317d
Testing crl (concurrency runtime library).
2017-12-17 23:05:00 +04:00
John Preston
499e3113b9
Allow HistoryGroupedMedia cloning.
...
We use it for local forwarded message creation, it should be main().
2017-12-17 17:01:34 +04:00
John Preston
656e4869e6
Move UnreadBadge to ui/unread_badge.
2017-12-17 15:04:47 +04:00
John Preston
defec611e3
Alpha version 1.2.3.
...
- Several crash fixes.
2017-12-17 12:41:35 +04:00
John Preston
49def354bd
Fix bug causing crash in group recounting.
2017-12-17 12:33:08 +04:00
John Preston
712b3f481c
Move online phrase code from app module.
...
Also fix possible assertion violation in online change timeout.
2017-12-17 12:13:26 +04:00
John Preston
b3a723c871
Fix crash in message history context menu.
...
Regression was introduced in 6d48ca850e
.
2017-12-17 11:25:02 +04:00
John Preston
de16a66a4a
Alpha version 1.2.2: Fix build for Xcode.
2017-12-16 21:09:37 +04:00
John Preston
b0f191515a
Alpha version 1.2.2.
...
- Grouped photos and videos are displayed as albums.
2017-12-16 20:52:41 +04:00
John Preston
89ccaccb88
Display right edited badge in group with caption.
2017-12-16 20:50:43 +04:00
John Preston
1f070da202
Recount grouping after leader caption edit.
2017-12-16 20:50:43 +04:00
John Preston
963e969d2a
Fix selected messages copy with grouping.
2017-12-16 20:50:43 +04:00
John Preston
4734700ac5
Improve opening history with one loaded message.
...
When we add just one last item, like we do while loading dialogs,
we want to remove a single added grouped media, otherwise it will
jump once we open the message history (first we show only that
media, then we load the rest of the group and show the group).
That way when we open the message history we show nothing until a
whole history part is loaded, it certainly will contain the group.
2017-12-16 20:50:43 +04:00
John Preston
d9da2edd7c
Improve grouped media display.
2017-12-16 20:50:43 +04:00
John Preston
6d48ca850e
Correct reply/forward/delete for grouped items.
2017-12-16 20:50:43 +04:00
John Preston
3e7ac7eb26
Use first media caption for group caption.
2017-12-16 20:50:43 +04:00
John Preston
520a644150
Fix drag by date of grouped media.
2017-12-16 20:50:43 +04:00
John Preston
3a56b7cabd
Forward grouped items. Fast share grouped items.
2017-12-16 20:50:43 +04:00
John Preston
efa72578cd
Fix grouped media display in MediaView.
2017-12-16 20:50:43 +04:00
John Preston
b6087ce7ce
Select/forward/delete group of messages.
2017-12-16 20:50:42 +04:00
John Preston
537400d8b2
Enable distinct selecting of grouped media.
2017-12-16 20:50:42 +04:00
John Preston
4c9931ab02
Support grouped media rendering.
2017-12-16 20:50:42 +04:00
John Preston
0a4038d061
Fix build with TDESKTOP_DISABLE_CRASH_REPORTS.
...
Regression was introduced in 97c15865a5
.
Fixes #4173 .
2017-12-13 00:25:14 +04:00
John Preston
4bab7583ba
Version 1.2.1.
...
- Bug fixes and other minor improvements.
2017-12-12 18:56:38 +04:00
John Preston
b2f29b674d
Send audio files with correct attributes.
...
Regression was introduced in 8b69e6ab99
.
Fixes #4163 .
2017-12-12 18:56:38 +04:00
John Preston
574f4a73cb
Add some checks to video sound stream decoding.
2017-12-12 18:56:37 +04:00
John Preston
05e3ddce0c
Fix userpic removing.
...
Regression was introduced in 68009b6fba
.
Fixes #4152 .
2017-12-12 18:56:37 +04:00
John Preston
3c101b0a50
Remove limit on chats list width.
...
Fixes #4146 .
2017-12-12 18:56:37 +04:00
John Preston
e998bd0b3f
Parse command line natively on Windows.
...
Use CommandLineToArgvW() so that unicode arguments are preserved.
This will fix path arguments with unicode symbols in them.
2017-12-12 18:56:37 +04:00
John Preston
251176df47
Move relaunch / update logic to Core::Launcher.
...
Also pass "-workdir" argument through relaunch / update.
Fixes #4149 .
2017-12-12 18:56:36 +04:00
John Preston
97c15865a5
Move some code around.
...
Move logs:SignalHandlers to core/crash_reports:CrashReports.
Move all pre-launch windows to core/crash_report_window module.
Move some global code to core/launcher:Launcher.
It should replace settings / platform_specific module in some way.
2017-12-12 16:47:32 +04:00
John Preston
9d4558de2b
Fix build in Visual Studio 15.5.1.
...
Looks like compiler had some regressions when updating from 15.4.5.
Range-V3-VS2015 also needs to cherry-pick this commit:
https://github.com/ericniebler/range-v3/commit/9f990c48d0
See https://github.com/Microsoft/Range-V3-VS2015/issues/26
2017-12-12 12:25:54 +04:00
John Preston
38f7f48c17
Open links in AboutBox without confirmation.
...
Fixes #4148 .
2017-12-12 12:25:54 +04:00
John Preston
9534121676
Fix issue number :/ Fixes #4150 .
2017-12-11 15:19:13 +04:00
John Preston
10b76d921b
Fix window scaling issue on macOS.
...
Fixes #4149 .
2017-12-11 15:06:05 +04:00
John Preston
8af058edc9
Version 1.2.0.
...
- Radically improved navigation. New side panel on the right
with quick access to shared media and group members.
- Saved Messages. Bookmark messages by forwarding them to "Saved
Messages". Access them from the Chats list or from the side menu.
- Pinned Messages. If you are a channel admin, pin messages to
focus your subscribers' attention on important announcements.
- Easily recognize messages from group admins by the new admin badge.
- Also supported clearing history in supergroups and
added a host of minor improvements.
2017-12-10 22:32:08 +04:00
John Preston
8b69e6ab99
Rename some methods in DocumentData.
...
Also fix voice message mark as read when autoplaying after previous.
Also show play icon and don't show playlist for audio files that do
not have shared music files attributes but have audio file mime type.
2017-12-10 14:28:04 +04:00
John Preston
4ef3de5287
Always specify seek position in TimeMs.
...
This way it won't rely on the sample rate of the audio file.
Fixes #4139 .
2017-12-10 12:52:38 +04:00
John Preston
9fff2bf4c7
Fix one more crash in HistoryWidget.
2017-12-10 00:32:35 +04:00
John Preston
534058fe9b
Alpha version 1.1.29.
2017-12-09 22:21:38 +04:00
John Preston
6d62673e9e
Fix crash in HistoryWidget.
2017-12-09 22:21:38 +04:00
John Preston
677dbd5d6e
Alpha version 1.1.28: Fix build for Xcode.
2017-12-09 20:01:40 +04:00
John Preston
452440f50b
Alpha version 1.1.28.
...
- Bug fixes and other minor improvements.
2017-12-09 19:17:23 +04:00
John Preston
5a7d8bcffb
Add audio playlist using Info::Media::ListWidget.
2017-12-09 19:13:06 +04:00
John Preston
63e89ddc9a
Fix replies by stickers and inline bot results.
2017-12-09 16:39:41 +04:00