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
John Preston
0cfede984c
Update API scheme to layer 132.
2021-08-30 20:32:56 +03:00
23rd
df02bbb0a3
Moved countries from Data to Countries namespace.
2021-08-29 20:39:43 +03:00
John Preston
44f52ca6cd
Fix solid color background preview.
2021-08-20 14:54:11 +03:00
John Preston
c5c94276c2
Allow editing caption of forwarded audio file.
...
Fixes https://bugs.telegram.org/c/3025
2021-08-18 16:29:05 +03:00
John Preston
662966ba31
Support patterns with negative intensity.
2021-08-17 17:35:10 +03:00
John Preston
2abcb51dda
Filter out patterns without background colors.
2021-08-16 17:14:34 +03:00
John Preston
a1f81e4de8
Generate static complex gradients.
2021-08-16 13:24:15 +03:00
John Preston
1bc5277d51
Show color / gradient wallpapers in WebPage previews.
2021-08-16 10:26:08 +03:00
John Preston
436d7b9d82
Add support for linear gradients without patterns.
2021-08-16 10:26:08 +03:00
John Preston
ba7e976fe2
Fix background sample generation.
2021-08-16 10:26:08 +03:00
John Preston
c2b1187948
Start support of linear gradient wallpapers.
2021-08-16 10:26:08 +03:00
John Preston
85cc3b30a0
Don't use MTP* for WallPaper flags.
2021-08-12 12:32:30 +03:00
John Preston
6cadf54874
Add support for SVG patterns in wallpapers.
2021-08-11 19:56:12 +03:00
John Preston
c79cd0b692
Use Images::Read instead of App::readImage.
2021-08-11 18:55:08 +03:00
John Preston
b2e829904f
Add support for 1 month self-destruct messages.
2021-07-30 16:05:13 +03:00
John Preston
116a768fde
Don't use MTP* for Message flags.
2021-07-28 15:28:17 +03:00
23rd
024bb5e54f
Moved App::formatPhone to td_ui.
2021-07-26 17:38:51 +03:00
John Preston
8f478b86ee
Change default wallpaper.
2021-07-23 15:42:17 +03:00
John Preston
773912f586
Apply local / server comment updates together.
2021-07-20 12:20:22 +03:00
John Preston
7bbc4b7191
Add basic new messages animation.
2021-07-20 12:20:22 +03:00
Ilya Fedin
ba9b72e038
Fix -Wunused-variable warnings with gcc
2021-07-19 22:31:27 +03:00
John Preston
4276b6cce0
Use rpl for Window::Theme::Background updates.
2021-07-15 16:42:36 +03:00
John Preston
402729dc99
Check unmuted video limit in group call.
2021-07-13 22:08:09 +03:00
John Preston
f17fc0b670
Support additional audio ssrc.
2021-07-13 22:08:09 +03:00
John Preston
8fc7ba7ac1
Handle updateBotCommands.
2021-07-13 22:08:09 +03:00
Ilya Fedin
79cc797aff
Fix -Wunused-variable warnings
2021-07-13 21:43:34 +03:00
Ilya Fedin
89765340c3
Fix -Wunused-function warnings
2021-07-13 21:31:22 +03:00
John Preston
4206ff0483
Don't use MTP* for StickersSet flags.
2021-07-09 09:08:58 +03:00
John Preston
75090dedaa
Don't store MTPInputStickerSet in data.
2021-07-08 22:08:59 +03:00
John Preston
f22e68fc32
Don't use MTP* for PeerSettings flags.
2021-07-08 17:32:39 +03:00
John Preston
a74228acea
Don't use MTP* for ChannelData flags.
2021-07-08 16:11:09 +03:00
John Preston
5040c2e766
Don't use MTP* for ChatData flags.
2021-07-08 15:11:46 +03:00
John Preston
e34375405e
Don't use MTP* for UserData flags.
2021-07-08 14:19:12 +03:00
John Preston
2ffda9f240
Don't use MTP* for ChatAdminRight / ChatRestriction.
2021-07-08 13:34:06 +03:00
23rd
a631a28092
Removed App::pixmapFromImageInPlace.
2021-07-06 12:13:06 +03:00
23rd
7cd6b821b3
Fixed update of recently attached stickers after sending.
2021-07-06 12:13:05 +03:00
23rd
e7104b5ebe
Added support for archived masks.
2021-07-06 12:13:05 +03:00
23rd
8d62800e77
Moved stickerSetInstalled from ApiWrap to Data::Stickers.
2021-07-06 12:13:05 +03:00
23rd
8e08f69508
Added support updateNewStickerSet and updateStickerSets for masks.
2021-07-06 12:13:05 +03:00
23rd
1cdb83462e
Added initial implementation of masks panel.
2021-07-06 12:13:05 +03:00
John Preston
d2e6e7adf2
Fix build on macOS.
2021-07-02 22:11:23 +03:00
John Preston
b930bc0e6d
Track bot commands separately in different chats.
2021-07-02 20:41:48 +03:00
John Preston
93d99d6173
Track only strings in BotCommand struct.
2021-07-02 20:41:46 +03:00
John Preston
4124c2eb57
Show inline path thumbnails for stickers.
2021-07-02 13:13:48 +03:00
23rd
348cf4829c
Added ability to scroll media in section of scheduled messages.
...
Fixed #8388 .
2021-07-01 23:53:45 +03:00
23rd
1a93f4fa4c
Added ability to sparse id slices of scheduled media.
2021-07-01 23:53:45 +03:00
23rd
118fd187e3
Added abstract class for sparse ids slices.
2021-07-01 23:53:45 +03:00
23rd
baa47bde7f
Removed unused MsgRange from SparseIdsSlice.
2021-07-01 23:53:45 +03:00
23rd
7decf68122
Fixed possible crash in OverlayWidget when video continues from PiP.
2021-06-24 17:44:28 +04:00
23rd
eb228eb744
Removed unused methods from file click handler.
2021-06-18 09:48:39 +03:00
23rd
23c54896e5
Removed App::main() from file click handlers.
2021-06-18 09:20:49 +03:00
23rd
6c56fad180
Fixed updating of parent id for file click handlers.
...
Fixed #16447 .
2021-06-18 07:30:54 +03:00
23rd
3fd772ce17
Moved file click handlers to separated file.
2021-06-18 07:30:54 +03:00
23rd
7304f2b695
Removed Application::showTheme.
2021-06-17 10:57:45 +04:00
23rd
b4bff939b1
Removed showDocument and showPhoto from Application.
2021-06-17 10:57:45 +04:00
23rd
1f816c249b
Replaced DocumentOpenClickHandler.
2021-06-17 10:57:45 +04:00
23rd
8591d58798
Added ability to show content from Controller for Shared Media.
2021-06-17 10:57:45 +04:00
23rd
dc0aaec4a4
Added ability to show document from Controller for sections.
2021-06-17 10:57:45 +04:00
23rd
eefa7263b5
Added ability to show photo from Controller for sections.
2021-06-17 10:57:45 +04:00
23rd
583c3d3429
Moved static functions from DocumentData to separated file.
2021-06-17 10:57:45 +04:00
John Preston
84f6a5f957
Handle "video_joined" flag in self participant.
2021-06-09 09:19:29 +04:00
John Preston
9a21d55de7
Show last blurred frame or userpic for paused videos.
2021-06-09 09:19:28 +04:00
John Preston
70f0cce340
Update API scheme.
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
John Preston
6a001f2e6c
Auto-switch large video by speaking participant.
2021-05-30 23:52:01 +04:00
John Preston
ddf81c949b
Add green outline to speaking video tiles.
2021-05-28 21:05:28 +04:00
John Preston
c6f44e7928
Hide video button if the call doesn't support video.
2021-05-26 14:27:48 +04:00
John Preston
4774f438a9
Update API scheme.
2021-05-24 22:45:16 +04:00
John Preston
a45064257a
Choose OpenGL / Raster surface at runtime.
2021-05-24 22:45:15 +04:00
John Preston
f4ae7ecbe7
Remove tracking of video ssrc-s.
2021-05-24 22:45:15 +04:00
John Preston
3a321d64f6
Switch between videos by left click.
2021-05-24 22:45:14 +04:00
John Preston
80e3e8a01e
Extract MembersRow from calls_group_members module.
2021-05-24 22:45:14 +04:00
John Preston
54c2769d8a
Improve voice /video chat members management.
2021-05-24 22:45:14 +04:00
John Preston
ba1dade4b0
New API/tgcalls with two outgoing videos.
2021-05-24 22:45:14 +04:00
John Preston
022c0a1327
Update tgcalls library.
2021-05-24 22:45:14 +04:00
John Preston
69ceed5bbc
Update API scheme to layer 129.
2021-05-24 22:45:14 +04:00
John Preston
1a784fc678
Track video_muted from API.
2021-05-24 22:45:14 +04:00
John Preston
6e34360f7e
Move some group call modules.
2021-05-24 22:45:13 +04:00
John Preston
ba02a5c46a
Resolve video chat participants by unknown ssrcs.
2021-05-24 22:45:13 +04:00
John Preston
a6f379a17a
Parse and serialize video parameters.
2021-05-24 22:45:13 +04:00
John Preston
e5ac7a1416
Fix creating a scheduled voice chat.
2021-04-12 15:36:19 +04:00
John Preston
1342077dcb
Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId.
2021-04-09 15:05:00 +04:00
John Preston
088fda4ed8
Correctly track mute button scheduled state.
2021-04-06 18:41:16 +04:00
John Preston
15d17c8b0e
Add creating of a scheduled group call.
2021-04-06 18:41:16 +04:00
John Preston
ee098d00ad
Add better error reporting to payments.
2021-04-06 18:41:16 +04:00
John Preston
e6ba6050e7
Update button on paid invoices to 'Receipt'.
2021-04-06 18:41:16 +04:00
John Preston
3ec3f6484f
Update API scheme to layer 128.
2021-04-06 18:41:15 +04:00
John Preston
a82d1e863e
Version 2.7.1: Fix channels ban in admin log.
2021-03-20 18:19:31 +04:00
John Preston
2bc2a0e459
Fix possible integer overflow.
2021-03-20 16:03:58 +04:00
John Preston
3bd6b2268f
Allow blocking channels in voice chats.
2021-03-20 15:43:35 +04:00
John Preston
a0a13c3b86
Update API scheme to layer 126.
2021-03-20 15:43:35 +04:00
John Preston
ba41da7b28
Fix discarded group call handle.
2021-03-19 00:57:16 +04:00
John Preston
2b6f50e114
Fix joining / unmuting.
2021-03-18 22:56:42 +04:00
John Preston
38e15c9bdb
Fix saving legacy chat admins without migration.
...
Fixes #10558 .
2021-03-18 17:27:33 +04:00
John Preston
00d65fa978
Request one participants slice on voice chat reload.
2021-03-18 16:58:05 +04:00
John Preston
b390e0766b
Apply all queued updates on reload.
2021-03-18 15:30:58 +04:00
John Preston
2f75e6bbe2
Add some logging for voice chat updates.
2021-03-18 15:22:55 +04:00
John Preston
67623072d6
Fix joining a voice chat.
2021-03-18 00:24:36 +04:00
John Preston
0684db9bd8
Improve participants sorting in voice chats.
2021-03-17 20:37:55 +04:00
John Preston
db7b61a77b
Rewrite voice chat members list management.
2021-03-17 20:37:55 +04:00