23rd
021d0053be
Fixed hiding spoilers in captions when switching sections.
2022-01-26 10:33:20 +03:00
John Preston
3ff17a8789
Refactor image transformation interfaces.
2022-01-21 15:33:44 +03:00
John Preston
d6e03c3e48
Fix possible crash with incorrect local time.
2022-01-19 19:03:19 +03:00
John Preston
e121487170
Fix appear animation when sending a reaction in a group.
2022-01-18 13:09:42 +03:00
John Preston
1657c2c7f2
Fix context menu on sent images / documents.
2022-01-17 19:21:34 +03:00
John Preston
cdf36cc387
Fix reaction animations stopping after an hour uptime.
2022-01-15 12:38:47 +03:00
John Preston
5eb210ec12
"Set As Quick" context menu in reactions dropdown.
2022-01-14 21:55:48 +03:00
John Preston
f24f78c0cc
Use click handler property instead of dynamic cast.
2022-01-14 21:55:48 +03:00
John Preston
8a071fe1fe
Respect reactions_default from appconfig.
2022-01-14 21:55:48 +03:00
John Preston
f3e84de5fb
Implement recent reaction userpics in groups.
2022-01-14 21:55:48 +03:00
John Preston
2dec1b72f7
Rename reactionBottom* to reactionInline* styles.
2022-01-14 21:55:48 +03:00
John Preston
490e688a91
Add reaction animations to comments.
2022-01-14 21:55:48 +03:00
John Preston
0ab26f0c82
Initial reaction effects implementation.
2022-01-14 21:55:47 +03:00
John Preston
963694330d
Correctly apply reaction restrictions.
2022-01-14 21:55:47 +03:00
John Preston
a377364621
Use correct sizes for lottie frames.
2022-01-14 21:55:47 +03:00
John Preston
c2c7a25487
Keep reaction media in memory.
2022-01-14 21:55:47 +03:00
John Preston
c0b19000d6
Use lottie instead of webp in reactions dropdown.
2022-01-14 21:55:47 +03:00
John Preston
409a3357da
Use lottie instead of webp in bottom info reactions.
2022-01-14 21:55:47 +03:00
John Preston
718ba2d0e3
Update API scheme to layer 137.
2022-01-14 21:55:47 +03:00
23rd
e11904e05b
Removed TextParseRichText.
2022-01-12 11:54:24 +03:00
23rd
e1aa08b985
Removed text commands.
2022-01-12 11:54:24 +03:00
23rd
b55ed7214a
Removed text commands from history item components.
2022-01-12 11:54:24 +03:00
John Preston
5b01f9530b
Fix reaction images loading.
2021-12-31 17:49:52 +03:00
John Preston
c632316ad7
Fix updated sticker set thumbnail loading.
2021-12-31 16:40:01 +03:00
John Preston
bba7010e74
Show "View Message" button in sponsored.
2021-12-31 16:07:36 +03:00
John Preston
611be90880
Rewrite sponsored to use fake sender names.
2021-12-31 16:07:36 +03:00
John Preston
5bb90679a8
Attempt to fix a weird assertion violation.
2021-12-31 01:20:28 +03:00
John Preston
08b99b19c3
Fix crash in spoilers restoring.
2021-12-29 21:22:34 +03:00
23rd
3aacae2cb2
Added behavior to hide spoilers when switching sections.
2021-12-29 21:22:34 +03:00
John Preston
58c9494c03
Add reactions to replies / comments / pinned section.
2021-12-29 21:22:34 +03:00
John Preston
a8bc7baa70
Update all messages in case of chat reactions toggle.
2021-12-29 21:22:34 +03:00
John Preston
ec16ca7df7
Poll reactions for visible messages.
2021-12-29 21:22:34 +03:00
John Preston
54f5b47585
Fix crash in reactions sending.
2021-12-29 21:22:33 +03:00
23rd
baca36e715
Added chat invites support to sponsored messages.
2021-12-29 21:22:33 +03:00
23rd
1cca4d71bd
Provided spoiler info to preview text.
2021-12-29 21:22:33 +03:00
23rd
a027a02130
Provided spoiler info to notification text.
2021-12-29 21:22:33 +03:00
23rd
f2c7237d5f
Moved item preview structs to separated file.
2021-12-29 21:22:33 +03:00
John Preston
fe468ce7e9
Respect can_see_list flag in reactions.
2021-12-29 21:22:33 +03:00
John Preston
118072db77
Update API scheme on layer 136.
2021-12-29 21:22:33 +03:00
John Preston
2991c3c17f
Toggle reactions from the list under the message.
2021-12-29 21:22:33 +03:00
John Preston
ad1476e80f
Return reading proper noforwards value.
2021-12-29 21:22:33 +03:00
John Preston
6f8c9f65cf
Optimize small emoji image caching and painting.
2021-12-29 21:22:33 +03:00
John Preston
710ef43e41
Update API scheme on layer 136.
2021-12-29 21:22:33 +03:00
John Preston
9c18f7b0e3
Allow choosing allowed reactions in groups / channels.
2021-12-29 21:22:33 +03:00
John Preston
535fd8d523
Display reactions outside bottom info in groups.
2021-12-29 21:22:33 +03:00
John Preston
b1668afdf1
Use available reactions list from the server.
2021-12-29 21:22:33 +03:00
John Preston
1af2cfe143
Extract BottomInfo from HistoryView::Message.
2021-12-29 21:22:33 +03:00
John Preston
3a43217301
Show reactions in messages.
2021-12-29 21:22:32 +03:00
John Preston
f5c7b206bb
Track message reactions.
2021-12-29 21:22:32 +03:00
John Preston
a1439163ce
Update API scheme to layer136.
2021-12-29 21:22:32 +03:00
John Preston
2a0babe5ab
Fix file upload cancelling.
...
Fixes #17408 .
2021-12-22 10:34:00 +00:00
John Preston
5e7e7eaa83
FullMsgId rely on PeerId instead of ChannelId.
2021-12-22 10:11:57 +00:00
John Preston
4b03fd0f23
Version 3.3: Fix build with GCC.
2021-12-08 08:35:03 +04:00
John Preston
d199e16a6e
Load cloud image without active view only once.
2021-12-07 10:01:56 +04:00
John Preston
9e5117d336
Respect autodownload settings in reply previews.
2021-12-03 14:59:08 +04:00
John Preston
0fa458737a
Fix shared media loading.
2021-12-02 13:54:30 +04:00
John Preston
caaeff32c5
Move global privacy setting down.
2021-12-02 13:36:49 +04:00
John Preston
afcebb136c
Don't use MTP for PeerData::isSelf.
2021-12-02 13:36:49 +04:00
23rd
69dc6c98ce
Removed unused MTPBool from callbacks on done.
2021-11-30 17:37:39 +04:00
23rd
3647241f71
Removed unused MTP::Error from callbacks on fail.
2021-11-30 17:37:07 +04:00
John Preston
16232c0a4a
Open channel profile from message sender click.
2021-11-29 14:54:31 +04:00
John Preston
0f443da758
Track noforwards flag in specific messages.
2021-11-26 18:00:22 +04:00
23rd
b9c64499bd
Moved code for api participants to separated file.
2021-11-26 18:00:21 +04:00
23rd
0eee937e6d
Moved ChatRestrictionsInfo and ChatAdminRightsInfo to separated file.
2021-11-26 18:00:21 +04:00
John Preston
8d66680a96
Show info about request chat admin incoming message.
2021-11-26 18:00:20 +04:00
John Preston
4f7c728632
Update API scheme on layer 135.
2021-11-26 18:00:20 +04:00
John Preston
aab4dbb7cf
Hide export and fast share for noforwards.
2021-11-26 18:00:19 +04:00
John Preston
80fcffcc40
Delete history for specific days in private chats.
2021-11-26 18:00:19 +04:00
John Preston
f13e28a9c5
Use in-class initializers for bitfields.
2021-11-26 18:00:19 +04:00
John Preston
773755d70e
Send as a channel in HistoryWidget.
2021-11-26 18:00:18 +04:00
John Preston
1bd74fe478
Choose a channel to send messages as.
2021-11-26 18:00:18 +04:00
John Preston
4691cff3f6
Start SendAsButton in HistoryWidget.
2021-11-26 18:00:18 +04:00
John Preston
c849d17667
Remove corner download if noforwards.
2021-11-26 18:00:18 +04:00
John Preston
9be47f0870
Allow restricting forwards in groups / channels.
2021-11-26 18:00:18 +04:00
John Preston
ebded1b421
Use Photo/DocumentData::isNull instead of date check.
2021-11-18 11:40:15 +04:00
John Preston
c534f3f22e
Some internal HistoryItem refactoring.
...
Replace most IsServerMsgId / id <=> 0 with isRegular().
Track isLocal / isHistoryEntry in flags.
Remove toHistoryMessage.
2021-11-07 12:50:13 +04:00
John Preston
af93d7cc97
History::createItem returns not_null.
2021-11-06 00:36:16 +04:00
John Preston
c0f898b069
Cache sponsored messages for 5 minutes.
2021-11-05 15:28:45 +04:00
23rd
55eb381bd2
Removed display of stale sponsored messages.
2021-11-05 11:27:26 +03:00
John Preston
7a57174ab1
Register sponsored view only on full message show.
2021-11-03 15:49:48 +04:00
23rd
52bacb3cde
Improved tracking of views for sponsored messages.
2021-11-02 20:58:35 +03:00
John Preston
aef45b3a1d
Refactor icon unread counter painting.
2021-11-02 20:12:57 +04:00
John Preston
36271d6b85
Save recent requester userIds from API.
2021-10-29 18:31:07 +04:00
John Preston
2f4651fe6f
Fix build on macOS.
2021-10-29 18:31:07 +04:00
John Preston
97ae094c3c
Update API scheme with new cloud themes.
2021-10-29 18:31:07 +04:00
John Preston
2ade6be146
Show correct phrase in local join messages.
2021-10-29 18:31:06 +04:00
John Preston
9e05e44a14
Inform about join request being sent.
2021-10-29 18:31:06 +04:00
John Preston
3af3f85f82
Allow creating approve-only invite links.
2021-10-29 18:31:06 +04:00
John Preston
e471d61d7a
Enable ads leading to a specific channel post.
2021-10-29 18:31:06 +04:00
23rd
70e9b4a332
Moved type of call id to alias.
2021-10-29 16:10:07 +04:00
John Preston
7bc4b2c595
Add StickersSet::thumbnailBigFileBaseCacheKey.
2021-10-21 23:01:14 +04:00
Ilya Fedin
847c01d605
Add Qt 6 support
...
Tested only on Linux so far
2021-10-21 13:15:00 +04:00
23rd
ea10cf5758
Moved api polls processing to separated file.
2021-10-20 22:56:19 +03:00
23rd
80461bd9fe
Moved ConfirmBox to Ui namespace.
2021-10-19 06:34:27 +03:00
23rd
6148edbc7d
Moved ConfirmBox to td_ui.
2021-10-19 06:34:27 +03:00
John Preston
adb0a9b6f0
Fix document filenames.
...
Regression was introduced in 2b11e45692
.
2021-10-11 22:58:24 +04:00
CoderTimZ
c9e24c2283
Display dates with the system date format
2021-10-11 21:56:29 +04:00
John Preston
041c922451
Add non-MTP ParseWebPageType.
2021-10-11 21:54:07 +04:00
John Preston
01c1096c62
Save Data::Session* in GameData.
2021-10-11 21:53:18 +04:00
John Preston
2b11e45692
Add DocumentData::setFileName.
2021-10-11 21:52:49 +04:00
23rd
6163e922b3
Added view button to webpages.
2021-10-10 19:30:38 +03:00
23rd
816f422e21
Removed MTP* from applying message edition.
...
Fixed #17073 .
2021-10-08 10:39:36 +04:00
23rd
c2b505b78c
Added ability to open specific post from sponsored messages.
2021-10-08 10:39:27 +04:00
23rd
d8fb5be9b5
Moved opening peer from PeerClickHandler to SessionController.
2021-10-07 23:32:10 +03:00
John Preston
bef35b9bc3
Don't use MTP* in call and invoice media data.
2021-10-07 18:22:28 +04:00
23rd
eda5cd47ad
Added manager of sponsored messages.
2021-10-07 11:09:08 +04:00
John Preston
0c906a5e6d
Fix crash in local changelog messages.
2021-10-07 10:58:24 +04:00
John Preston
730412fefe
Load albums of last chat messages.
2021-10-04 23:47:33 +04:00
John Preston
576883ddc8
Make mini preview radius 2px.
2021-10-04 23:47:33 +04:00
John Preston
992d636680
Generate album mini previews with up-to-three images.
2021-10-04 23:47:33 +04:00
John Preston
8cdd2f113f
Add play icon to video mini previews.
2021-10-04 23:47:33 +04:00
John Preston
d5f935b73d
Put mini-previews after sender name.
2021-10-04 23:47:33 +04:00
John Preston
21ac2b8f3a
Don't use MTP* for reply markup data.
2021-10-04 23:47:30 +04:00
John Preston
792b9090a7
Generate mini-previews for photos and files.
2021-10-04 23:45:21 +04:00
John Preston
8c21fad642
Move preview paint to Dialogs::Ui::MessageView.
2021-10-04 23:45:21 +04:00
John Preston
b2526ab7f6
Make sure special MsgId-s are always outside ServerMaxMsgId range.
2021-09-30 19:31:03 +04:00
John Preston
ead695b101
Don't pass wide fake MsgId through MTPMessage.
2021-09-30 15:30:39 +04:00
John Preston
1e660fc2a2
Allocate 64 bits for message ids.
2021-09-30 13:49:37 +04:00
John Preston
ab0d2bf9c6
Initial chat theme changing.
2021-09-28 19:27:41 +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
2f5bed2899
Skip "contact joined" toast if disabled in Settings.
...
The chats still appear (they are server-side), but skip the toast.
2021-09-23 17:37:29 +04:00
John Preston
e0135e509d
Allow exporting test chat themes.
2021-09-19 14:40:43 +03:00
John Preston
8069fdd873
Use base/random.h instead of openssl::RandomValue.
2021-09-15 13:42:22 +03:00
John Preston
bc2e6c4fd1
Accept uppercase hex values in theme testing links.
2021-09-12 23:18:37 +03:00
John Preston
8d31769846
Fix build with Xcode.
2021-09-11 00:02:15 +03:00
John Preston
13c00949ed
Add a simple way of testing color themes.
2021-09-10 22:29:30 +03:00
John Preston
28be89f7c3
Correctly apply photos from "min" users.
2021-09-09 16:59:36 +03:00
23rd
900a7d0b2b
Appended references to const auto types in loop to prevent copying.
...
Suggested by Apple Clang.
2021-09-09 16:32:04 +03:00
John Preston
14314df26a
Show userpics in who read context item.
2021-09-09 00:10:49 +03:00
23rd
cd59ba6629
Added ability to start video recording in group calls.
2021-09-07 23:41:08 +03:00
John Preston
4273167aa2
Adjust outgoing bubble text and icon colors.
2021-09-07 23:41:08 +03:00
John Preston
a6c98f4bb4
Update API scheme to layer 133.
2021-09-07 23:41:07 +03:00
John Preston
23e9e7b9f0
Remove for_const macro.
2021-09-06 13:13:26 +03:00
John Preston
1a4a9319f3
Custom colors in history_view_message module.
2021-09-06 13:13:26 +03:00
John Preston
09e014cc14
Force non-transparency for WebDocuments in PhotoData.
2021-09-02 10:31:57 +03:00
23rd
bcbab7ad8e
Added ability to change playback speed for long audio files.
2021-09-01 01:23:20 +03:00
23rd
eadd7704ef
Removed Main::Session forward declaration from data_types.
2021-09-01 01:23:20 +03:00
23rd
e6f0c176f7
Moved AudioMsgId to separated file.
2021-09-01 01:23:20 +03:00
John Preston
f59db10267
Update default chat background.
2021-08-31 22:10:39 +03:00
John Preston
cd8d257c70
Disable chat themes.
2021-08-31 19:51:56 +03:00
John Preston
9dfc60026e
Add simple forwarding options on bar click.
2021-08-31 19:47:38 +03:00
23rd
dc8eb79295
Moved code of data send actions from Data::Session to separated file.
2021-08-30 23:08:57 +03:00
23rd
436212bb88
Added animation of send action for stickers to middle of text.
2021-08-30 20:50:36 +03:00
John Preston
52a6282eb9
Count unread replies locally when possible.
2021-08-30 20:32:58 +03:00
John Preston
c39024c7fd
Track and display unread count in discussions.
2021-08-30 20:32:58 +03:00
John Preston
809b0e9fe0
Fix build for Linux.
2021-08-30 20:32:58 +03:00
John Preston
5de83ef30c
Fix assertion violation in profile video with zero file size.
2021-08-30 20:32:57 +03:00
John Preston
f5a323e40a
Move all background helper methods to chat_theme module.
2021-08-30 20:32:57 +03:00
John Preston
3cd0f9d189
Start non-unique ChatTheme.
2021-08-30 20:32:57 +03:00
John Preston
f3dd8c68b3
Load chat cloud themes list.
2021-08-30 20:32:57 +03:00