Commit Graph

2237 Commits

Author SHA1 Message Date
John Preston 0277d765bb Nice reactions panel expanding. 2022-09-02 21:14:30 +04:00
John Preston f72092a261 Update API scheme on layer 145. 2022-09-02 21:14:30 +04:00
John Preston bd42c23999 Implement reactions selector above the menu. 2022-09-02 21:14:30 +04:00
John Preston fa26afaf9a Rename several HistoryView::Reactions modules. 2022-09-02 21:14:30 +04:00
John Preston 27063167ae Don't cut name / status unnecessary. 2022-09-02 21:14:29 +04:00
John Preston 09124f6424 Implement PoC custom reaction selection. 2022-09-02 21:14:29 +04:00
John Preston 60cc232884 Update API scheme on layer 145. 2022-09-02 21:14:29 +04:00
John Preston 77772caabb Update API scheme on layer 145. 2022-09-02 21:14:29 +04:00
John Preston bd089f20a8 Emoji status selector in MainMenu/Settings. 2022-09-02 21:14:28 +04:00
John Preston 285ce81b7b Update API scheme to layer 145. 2022-09-02 21:14:28 +04:00
Ilya Fedin e20840b4d4 Use KUrlMimeData for clipboard xdg-desktop-portal integration 2022-08-30 20:25:10 +04:00
John Preston d1a81a83b4 Fix crash in editing media captions. 2022-08-16 09:21:12 +03:00
John Preston c8c3f43853 Fix editing media captions with custom emoji. 2022-08-16 08:27:55 +03:00
John Preston 7c2d3a8855 Fix custom emoji in initial send files caption. 2022-08-15 19:10:38 +03:00
John Preston 2c0a38d356 Don't unload emoji sets.
Fixes #24933.
2022-08-15 15:52:27 +03:00
John Preston fede1ff173 Simplify stickers inner API. 2022-08-15 11:34:22 +03:00
John Preston d2e1517e7a Correctly cancel username check request. 2022-08-11 09:06:30 +03:00
John Preston ab3d3a449b Remove MTP from requestWallPaper interface. 2022-08-11 09:05:23 +03:00
John Preston 8bc807dc40 Set name / phone texts on-demand. 2022-08-09 14:12:19 +03:00
Sergey A. Osokin 7a3452a18a Fix warnings by removing unused const variables
Telegram/SourceFiles/ui/text/custom_emoji_instance.cpp:23:16: warning: unused variable 'kMaxFrameDuration' [-Wunused-const-variable]
Telegram/SourceFiles/boxes/reactions_settings_box.cpp:46:16: warning: unused variable 'kVisibleButtonsCount' [-Wunused-const-variable]
Telegram/SourceFiles/boxes/premium_preview_box.cpp:53:16: warning: unused variable 'kShiftDuration' [-Wunused-const-variable]
Telegram/SourceFiles/settings/settings_premium.cpp:55:16: warning: unused variable 'kTitleAnimationPart' [-Wunused-const-variable]

Found by:	clang
2022-08-08 21:21:13 +04:00
John Preston b7cc2e9894 Don't pass redundant MTPUpdates arguments. 2022-08-05 13:37:41 +03:00
John Preston f8e22210e7 Move Webm sticker to UnwrappedMedia. 2022-08-04 13:35:34 +03:00
John Preston f4b80d8714 Show premium emoji toast / send to Saved Messages. 2022-08-02 20:59:50 +03:00
John Preston 59903b0b1c Suggest animated emoji in Saved Messages. 2022-08-02 19:23:06 +03:00
23rd e7b3416da8 Allowed to forward voice messages without full user info. 2022-08-02 16:51:11 +03:00
John Preston 4a5592e95d Show premium mark in suggested stickers. 2022-08-02 16:47:53 +03:00
John Preston 4915ea8ad3 Add convenient appConfig().get<int>(..). 2022-08-02 13:20:38 +03:00
John Preston 0ce7e402ed Mark premium stickers with a star. 2022-08-02 13:20:38 +03:00
John Preston b42f2784ab Allow sending premium emoji to Saved Messages. 2022-08-02 13:20:38 +03:00
John Preston e64190fb64 Fix crash in attached emoji preview. 2022-07-27 12:26:22 +03:00
John Preston 4cf4b6a368 Optimize emoji / stickers update requests. 2022-07-26 20:12:14 +03:00
John Preston 73fc478a2d Allow removing sets from emoji set preview box. 2022-07-26 20:12:14 +03:00
John Preston 2d6008f6ca Fix custom emoji in edit caption / send files box. 2022-07-26 20:12:13 +03:00
John Preston 075ced2742 Remove emoji-set preview context menu. 2022-07-26 20:12:13 +03:00
John Preston c51837cfdf Reuse SizeTag::Large emoji instances. 2022-07-26 20:12:13 +03:00
John Preston bb8f8131e4 Improve premium preview from emoji panel. 2022-07-26 20:12:13 +03:00
John Preston b0fab8c987 Show featured custom sets in the panel. 2022-07-26 20:12:13 +03:00
John Preston b31a3ba5a3 Improve emoji set box design. 2022-07-26 20:12:13 +03:00
23rd 152bcb3570 Changed calculation of discount for premium gifts relative to smallest. 2022-07-26 20:12:13 +03:00
John Preston b14b69272a Fix build with GCC. 2022-07-26 20:12:12 +03:00
John Preston de0eef8cc6 Update API scheme on layer 144. 2022-07-26 20:12:12 +03:00
John Preston bf286cf175 Show "Unlock emoji" button for premium sets. 2022-07-26 20:12:12 +03:00
John Preston bb7249f280 Allow viewing emoji sets used in a message. 2022-07-26 20:12:12 +03:00
John Preston 5ce8ed80bf Show premium emoji tooltip on paste. 2022-07-26 20:12:11 +03:00
John Preston 2524b9a4c6 Show outline for premium emoji packs. 2022-07-26 20:12:11 +03:00
John Preston 3ccc567e04 Add animated emoji premium preview. 2022-07-26 20:12:11 +03:00
23rd 3fe83282a8 Slightly improved code style of controllers for privacy settings. 2022-07-26 20:12:11 +03:00
23rd 89a3462824 Simplified extracting of data from some MTP* responses. 2022-07-26 20:12:11 +03:00
John Preston 44a7d11e4a Support mixed custom / default recent emoji. 2022-07-26 20:12:11 +03:00
John Preston a821c3c31d Support thumb_document_id in emoji sets. 2022-07-26 20:12:10 +03:00
John Preston 25f4646cd8 Adapt emoji pack preview box. 2022-07-26 20:12:10 +03:00
John Preston ddd5021966 Minimal emoji sets support. 2022-07-26 20:12:10 +03:00
John Preston 9eaac98070 Fix build for Windows. 2022-07-26 20:12:10 +03:00
23rd 5fbbdd8a9e Added ability to choose to show recent group history for each new user.
Fixed #9864.
2022-07-26 20:12:10 +03:00
23rd 032372f150 Added stars animation to box for premium gifts. 2022-07-26 20:12:09 +03:00
23rd c7c8ebed13 Added initial box for premium gifts. 2022-07-26 20:12:09 +03:00
23rd 2a3d72ad2e Added ability to provide custom text to subscribe button. 2022-07-26 20:12:09 +03:00
23rd 99676c4cf8 Moved some premium styles to separate file. 2022-07-26 20:12:09 +03:00
John Preston 90cd4afb8c Remove empty icon space in Manage Group settings. 2022-07-26 20:12:09 +03:00
John Preston 7a10d3d82c Support animated emoji in share box comment. 2022-07-26 20:12:08 +03:00
John Preston 806c5ddf29 Support animated emoji in caption edit fields. 2022-07-26 20:12:08 +03:00
John Preston fc7dcd0360 Version 4.0.2: Remove Saved Messages premium badge. 2022-06-25 00:06:13 +04:00
John Preston 8f0ba749d1 Fix history visibility edit button.
Regression was introduced in c3386fba52.

Fixes #24691.
2022-06-24 00:25:23 +04:00
John Preston fc8ea688a3 Update profile badges order. 2022-06-23 17:53:36 +04:00
John Preston 2d651050ad Show premium badge in peer lists.
Fixes #24687.
2022-06-23 14:00:59 +04:00
John Preston 69f469a0f9 Fix bio limits in premium info page. 2022-06-20 11:57:31 +04:00
John Preston fbc284af49 Fix auto-download limit.
Fixes #24642.
2022-06-20 11:48:19 +04:00
John Preston ff51bf81f3 Allow clearing history in megagroups. 2022-06-20 11:30:43 +04:00
John Preston 77330aa6a7 Fix a crash in adding a contact. 2022-06-18 00:01:30 +04:00
23rd 2f1286a05e Fixed display of max accounts in box for premium doubled limits. 2022-06-16 13:29:38 +03:00
23rd 7b00671ccf Moved out all values of premium limits to single place. 2022-06-16 13:29:37 +03:00
John Preston 08ebff4e5d Preload premium previews even with Close button. 2022-06-16 14:07:54 +04:00
John Preston 0a81246502 Show correct error box when sending file > 4GB. 2022-06-16 13:48:11 +04:00
John Preston 145d112982 Fix build with GCC. 2022-06-15 23:25:51 +04:00
John Preston 01bcdf10ee Add arrows to move in premium previews box. 2022-06-15 19:31:13 +04:00
John Preston 2583ddea2e Switch premium previews by keyboard. 2022-06-15 17:23:01 +04:00
John Preston a8ffb21bfa Fix premium sticker preview switching. 2022-06-15 16:50:59 +04:00
23rd 6d4506f8aa Fixed display of most of multiline toasts in corresponding window. 2022-06-15 14:06:32 +03:00
John Preston 60d998bf36 Fix build on Linux. 2022-06-14 21:27:50 +04:00
John Preston 707359e371 Close double limits preview box on premium change. 2022-06-14 16:40:50 +04:00
John Preston 7b4fca57ae Fix subscription from preview box. 2022-06-14 16:16:40 +04:00
John Preston 6260f258bb Improve premium preview boxes close buttons. 2022-06-14 16:03:44 +04:00
23rd 629574685e Fixed display of most of simple toasts in corresponding window. 2022-06-14 14:24:21 +03:00
23rd 236b7bbf28 Fixed display of toast about copying post link in corresponding window. 2022-06-14 14:24:21 +03:00
John Preston 4de71408a2 Improve accounts limit box. 2022-06-14 14:54:30 +04:00
John Preston 6d8012f13a Pause premium settings animations. 2022-06-14 13:43:07 +04:00
John Preston a34e6ca7db Take premiumPossible in the accounts limit box correctly. 2022-06-14 13:43:07 +04:00
John Preston 5f9eeb7cbe Show premium star while preview video loads. 2022-06-13 23:10:32 +04:00
John Preston 221bc5ef59 Preload premium stickers / reactions previews. 2022-06-13 23:10:32 +04:00
John Preston 50926acab9 Toggle premium stickers previews. 2022-06-13 23:10:32 +04:00
23rd acf7a82507 Added preview box for premium doubled limits. 2022-06-13 14:27:26 +03:00
23rd 0bd65794d2 Added glare effect to gradient round button. 2022-06-12 16:07:41 +03:00
23rd 1d475ee727 Slightly optimized includes in application.h. 2022-06-12 16:07:41 +03:00
John Preston bcfbdcd6ed Fix build on macOS. 2022-06-10 17:38:52 +04:00
John Preston 0e90092d59 Paint phone frame + animate preview transitions. 2022-06-10 17:15:01 +04:00
John Preston f78b9324dc Show videos in premium preview boxes. 2022-06-10 12:05:16 +04:00
23rd bfe873e91c Provided session controller to AddBotToGroupBoxController. 2022-06-09 08:19:11 +03:00
23rd d034410a3f Fixed icon position of invite links in add members box. 2022-06-09 08:05:11 +03:00
23rd 43c0197445 Removed Ui::hideLayer from places that can be in non-primary windows. 2022-06-09 07:06:01 +03:00
23rd 948ce77a8f Improved deleting peer from non-primary windows. 2022-06-09 04:20:13 +03:00
23rd 37f96534ec Fixed opening of shared media in corresponding window from media viewer. 2022-06-09 00:45:04 +03:00
John Preston e8933decb1 Show sticker / reaction preview over premium gradient. 2022-06-08 19:13:22 +04:00
John Preston 7ba997259c Use sizes like iOS for premium sticker effects. 2022-06-08 19:00:48 +04:00
John Preston 916f86b401 Don't show premium star when premium unavailable. 2022-06-08 16:53:16 +04:00
John Preston 524771529a Don't shows premium section / preview if unavailable. 2022-06-08 11:26:53 +04:00
John Preston 86889cf1ef Don't show premium stickers if premium blocked. 2022-06-08 10:28:45 +04:00
John Preston a780fbd09b Add "ctrl-click-chat-new-window" option. 2022-06-07 22:05:37 +04:00
John Preston 00bea8d1ee Don't show subscribe button with blocked premium. 2022-06-07 11:49:24 +04:00
John Preston 368a1e4231 Support non-premium-supported limit boxes. 2022-06-07 10:30:59 +04:00
23rd 1572af3a71 Fixed limits in bubble to show more relevant value in server-side boxes. 2022-06-07 08:16:39 +03:00
23rd 9e9a269439 Provided count of dialogs in filter to premium limit boxes. 2022-06-07 08:16:39 +03:00
23rd 9b6b5968e2 Provided count of pinned dialogs to premium limit boxes for pins. 2022-06-07 08:16:39 +03:00
23rd 95cc27b145 Provided character count of large file caption to premium limit box. 2022-06-07 08:16:39 +03:00
23rd 3959918fc5 Provided size of big file to premium limit box. 2022-06-07 08:16:39 +03:00
John Preston 705753efb2 Use small userpic video in dialogs list / chat history. 2022-06-03 15:58:02 +04:00
John Preston 6454f67e74 Support new attach bot deeplinks. 2022-06-03 00:38:04 +04:00
23rd 1d7e901b7a Improved processing of premium accounts limits. 2022-06-02 13:56:01 +03:00
23rd 287fae858e Moved Settings::OrderedAccounts() to Main::Domain::orderedAccounts(). 2022-06-02 13:48:42 +03:00
23rd a1736de977 Fixed processing of premium limits for filters. 2022-06-02 12:15:59 +03:00
23rd 9e4d47dcc0 Slightly improved style of box for premium accounts limits.
Added an icon for the info bubble.
Added a gradient color to selected account.
Respected an order of accounts from settings.
2022-06-02 02:16:01 +03:00
23rd 78246aada7 Added box for premium accounts limits. 2022-06-01 11:59:14 +04:00
John Preston 569cea98b4 Redesign premium reactions preview box. 2022-06-01 11:59:14 +04:00
John Preston 5bc072de07 Support premium bio (with links and x2 length). 2022-06-01 11:59:14 +04:00
23rd 8e6825771e Added support of filters limit to side bar. 2022-05-30 14:57:49 +03:00
23rd de08e1d9a9 Added corner tail when bubble in premium box is at edge. 2022-05-30 07:58:04 +03:00
John Preston d2abcdacee Show information about disabled reactions. 2022-05-27 23:57:40 +04:00
John Preston 2362d6c6fb Introduce premium reactions preview box. 2022-05-27 19:42:05 +04:00
John Preston 1745ccf0bf Fix sticker preview background. 2022-05-26 16:51:18 +04:00
John Preston d1cb558b43 Show path gradient while loading sticker preview. 2022-05-26 15:53:26 +04:00
John Preston 490f6f7e50 Display premium / fake / scam badge in group members. 2022-05-24 11:25:49 +04:00
23rd 3b379c67ac Slightly improved style of some boxes for premium limits. 2022-05-24 10:00:23 +03:00
John Preston d1907083ed Add FileSizeLimitBox and pass "ref" to premium payment. 2022-05-23 18:46:15 +04:00
John Preston d81bba155a Update some premium icons. 2022-05-20 19:28:50 +04:00
John Preston 853cafe195 Show premium stickers lock icon. 2022-05-20 18:57:01 +04:00
John Preston 5cd065ef6b Show premium page on limit increase decision. 2022-05-20 17:12:56 +04:00
23rd 62c759a0ff Improved style of premium limits boxes. 2022-05-20 13:18:22 +03:00
23rd 52904b6d58 Added line info about limits for premium boxes. 2022-05-20 13:18:22 +03:00
23rd bc5c85655d Added animated bubble for premium boxes. 2022-05-20 13:18:22 +03:00
23rd 8e80b9cb06 Moved out gradient round button to td_ui. 2022-05-20 13:18:22 +03:00
John Preston ad3c6ebb1e Use / cache the same sticker / effect size in preview. 2022-05-19 19:05:07 +04:00
John Preston 693d886d81 Disable sync between sticker and effect. 2022-05-19 17:57:39 +04:00
John Preston 22613fc204 Show only one placeholder for premium reactions. 2022-05-19 17:27:04 +04:00
John Preston ca731968ca Improve premium sticker sync / preview. 2022-05-19 17:27:03 +04:00
John Preston fe91887ea2 Update API: support "All Chats" reordering. 2022-05-19 17:27:03 +04:00
John Preston 26c99cea7c Show all premium limits boxes. 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 dd05fb4d14 Show limit toasts and boxes. 2022-05-19 17:27:02 +04:00
John Preston d11f1c22be Fix folder chats limit checking. 2022-05-19 17:27:02 +04:00
John Preston 23caae689b Show new pins limit box. 2022-05-19 17:27:02 +04:00
John Preston 739123dedc Implement simple premium limits boxes. 2022-05-19 17:27:02 +04:00
John Preston d87c9c72fb Update API scheme on layer 142: Premium reactions. 2022-05-19 17:27:01 +04:00
John Preston c3386fba52 Edit join public group request requirement. 2022-05-19 17:27:01 +04:00
23rd 94d943f3af Fixed style of icons in info peer box. 2022-05-10 08:53:31 +03:00
23rd 540ee0bc44 Moved out mtp fields from PasscodeBox::CloudFields to nested struct. 2022-05-10 08:53:29 +03:00
23rd 627170520a Moved out mtp fields from CloudPasswordState to nested struct. 2022-05-08 23:13:45 +03:00
John Preston f2b89445ae Allow playing single lottie icon repeatedly or once. 2022-05-04 11:39:53 +04:00
23rd cd50008429 Moved plus icon to settings style file. 2022-05-03 21:59:38 +03:00
23rd b04aaba8d0 Slightly improved style of box for edit folder. 2022-05-03 21:59:38 +03:00
23rd bfa3655c7b Removed unused code of box for filters choosing. 2022-05-03 21:59:38 +03:00
Andrew Krasavin 2b383a4236 Explicitly specify QVector element type to fix build with clang13+rangev3+qt6
More info:
https://github.com/telegramdesktop/tdesktop/issues/24385
https://github.com/telegramdesktop/tdesktop/issues/24014
https://github.com/ericniebler/range-v3/issues/1691
2022-05-03 15:15:20 +04:00
23rd 8fae56bee8 Improved style of Folders settings. 2022-05-03 04:25:36 +03:00
23rd aa241a1f62 Removed duplicated icons. 2022-05-03 04:25:35 +03:00
23rd 1349989494 Moved settings of blocked peers to section. 2022-05-03 04:25:35 +03:00
23rd 2f5db08c9b Fixed double scroll in reactions settings when height is small. 2022-05-02 22:31:05 +03:00
23rd 774c3b5ba0 Fixed tab order in EditNameBox. 2022-04-28 17:10:13 +03:00
23rd a64b8d4181 Slightly improved style of section for group stickers. 2022-04-28 16:27:39 +03:00
23rd 62b5192f24 Added missed icon for channel type in manage of channels. 2022-04-26 22:16:39 +04:00
23rd 058717532a Replaced title static reaction icon in manage of groups / channels. 2022-04-26 22:16:38 +04:00
23rd a994c9f017 Moved EditPeerHistoryVisibilityBox to td_ui. 2022-04-25 22:35:02 +04:00
23rd 66e6bf8217 Replaced EditPeerHistoryVisibilityBox with generic box. 2022-04-25 22:35:02 +04:00
23rd 4a4cc766c2 Replaced icons in manage group / channel. 2022-04-25 22:35:02 +04:00
23rd d289bbdc5e Added ability to report profile photos.
Fixed #24325.
2022-04-19 09:39:01 +04:00
23rd 2e9e3b3751 Provided parent to report toasts. 2022-04-19 09:39:01 +04:00
23rd af0a2f182c Removed Ui::show from ShowReportItemsBox. 2022-04-19 09:39:01 +04:00
23rd e3ac84a849 Moved boxes for reporting messages or peers to separated file. 2022-04-19 09:39:01 +04:00
23rd e37866d0b9 Added animated reactions in manage of groups / channels. 2022-04-19 09:39:00 +04:00
23rd 1ed7d482ab Added ability to choose precise time for user restriction.
Fixed #3599.
Fixed #6923.
2022-04-19 09:39:00 +04:00
John Preston e3dc4ae088 Version 3.7: Fix a crash in some langpacks. 2022-04-16 20:58:17 +04:00
23rd 64627c9093 Fixed theme of sample bubble message in reactions settings. 2022-04-15 13:11:32 +03:00
John Preston 9bd9f17a6c Show only active reactions in quick reaction box. 2022-04-15 09:26:58 +04:00
John Preston 5cf3b621ee Beta version 3.6.3: Fix emoji in ReactionsSettingsBox on non-Retina. 2022-04-14 09:57:38 +04:00
23rd 59fc9d3bfd Replaced static reaction icon in settings with animated lottie. 2022-04-14 09:46:03 +04:00
John Preston 866ab2fcc2 Beta version 3.6.3: Fix build with Qt 5.15. 2022-04-14 09:46:02 +04:00
23rd 2f8efb5ce6 Moved out setup of top and bottom scroll shadows to separated file. 2022-04-13 14:26:11 +03:00
John Preston 488f6412f2 Change phone number section instead of a box. 2022-04-13 15:06:24 +04:00
23rd 4216d72c67 Added ability to set favorite reaction from settings. 2022-04-13 15:06:23 +04:00
23rd a49eda44d9 Replaced hardcoded limitations for ringtones with server values. 2022-04-10 22:16:15 +03:00
23rd 8440c44def Replaced box for choosing of filter with submenu. 2022-04-10 15:34:12 +03:00
23rd 8721b7a689 Simplified condition for display of invite links button. 2022-04-07 19:54:20 +03:00
23rd 08f2bbef4e Moved out nested class for merged message search to separated file. 2022-04-07 19:18:47 +03:00
John Preston ea30918d35 Fix build with GCC. 2022-04-07 18:28:58 +04:00
John Preston d35b8f82a3 Play ringtones on click in select box. 2022-04-07 11:35:53 +04:00
23rd e033337b26 Added toast to add to / remove from folder actions. 2022-04-06 18:44:45 +03:00
John Preston c71ba2b8e7 Choose newly uploaded ringtone in the box. 2022-04-06 19:19:50 +04:00
23rd 7b307a9e54 Added ability to save audio from chat as custom notification sound. 2022-04-06 15:21:37 +03:00
23rd 41784eb56a Removed display of file extension from list of custom sounds. 2022-04-06 13:15:27 +03:00
23rd d224b3d301 Added quick actions for folders to menu from chats list. 2022-04-06 12:36:32 +03:00
John Preston 622474e83b Leave only one list of items for custom sounds. 2022-04-05 19:29:43 +04:00
23rd 9950452e57 Slightly optimized name of methods in data notify settings. 2022-04-05 15:28:48 +03:00
23rd c04a0e42a7 Added initial ability to configure notification sound. 2022-04-05 15:28:48 +03:00