Commit Graph

906 Commits

Author SHA1 Message Date
23rd 00df4625e2 Added support of primary username to FieldAutocomplete. 2022-11-01 19:25:39 +04:00
23rd 5751d29c47 Removed username from public data members of UserData. 2022-11-01 19:25:38 +04:00
John Preston 89d0a71591 Update API scheme on layer 148: Drafts in topics. 2022-11-01 19:25:38 +04:00
John Preston 2c50f7b18c Implement nice topic icon create / edit box. 2022-11-01 19:25:36 +04:00
John Preston e5f2d83548 Support new rounding in bot inline keyboards. 2022-11-01 19:25:35 +04:00
John Preston b13471672d Move some chat styles from basic.style to chat.style. 2022-11-01 19:25:34 +04:00
John Preston 6fcafeff5b Don't repeat premium stickers in fake-pack. 2022-09-22 14:58:40 +04:00
John Preston ffb024a5f7 Move Ui::Text::String to HistoryView::Element. 2022-09-22 11:07:48 +04:00
John Preston 749fb52113 Implement animated spoilers. 2022-09-18 16:52:30 +04:00
John Preston bc340d75c4 Insert / Copy emoji from pack preview. 2022-09-14 14:45:23 +04:00
John Preston ffaeb239f0 Don't show emoji tooltip in reactions / statuses. 2022-09-12 09:46:23 +04:00
John Preston 4942154a9c Make loading emoji set icons look nicer. 2022-09-10 07:23:20 +04:00
John Preston 5cc6275fc3 Fly + effects when choosing an emoji status. 2022-09-07 12:52:34 +04:00
John Preston d4810713cb Fly-animate reactions from the new context menu. 2022-09-06 17:08:20 +04:00
John Preston a736ddb24e One more fix for GCC build. 2022-09-03 09:08:13 +04:00
John Preston 85acf051c1 Try to fix build with GCC. 2022-09-03 06:51:02 +04:00
John Preston 898edad09b Show status duration menu only in status panel. 2022-09-02 21:14:34 +04:00
23rd fa4801ac94 Added ability to set emoji status for certain period of time. 2022-09-02 21:14:34 +04:00
John Preston 2d07539892 Support colored emoji statuses. 2022-09-02 21:14:33 +04:00
John Preston 923e725e18 Request default and recent emoji statuses. 2022-09-02 21:14:33 +04:00
John Preston ebf6cea2f5 Correctly show premium promo for custom reactions. 2022-09-02 21:14:32 +04:00
John Preston d5008fe7ac Sync custom emoji from strip to recent in the panel. 2022-09-02 21:14:32 +04:00
John Preston 73d8530c13 Fix jumping to premium promo from reactions panel. 2022-09-02 21:14:30 +04:00
John Preston 610c46e26f Make a nice selector for only-recent set. 2022-09-02 21:14:30 +04:00
John Preston 96805b62b2 Seamless switch from strip icons to custom emoji. 2022-09-02 21:14:30 +04:00
John Preston 4762c7a4fd Fix layout with a single available reaction. 2022-09-02 21:14:30 +04:00
John Preston 0277d765bb Nice reactions panel expanding. 2022-09-02 21:14:30 +04:00
John Preston 20d4d00634 Implement expanding of list / categories. 2022-09-02 21:14:30 +04:00
John Preston c5fa4aae62 Support reaction dropdown based on EmojiListWidget. 2022-09-02 21:14:30 +04:00
John Preston 33b266175d Allow creating EmojiListWidget without SessionController. 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 8d2ebdbb99 Animate reactions strip appearance. 2022-09-02 21:14:29 +04:00
John Preston a0d5456a4d PoC content outside of PopupMenu. 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 bd089f20a8 Emoji status selector in MainMenu/Settings. 2022-09-02 21:14:28 +04:00
John Preston 64bd4f0926 Make nice emoji status selector in profile. 2022-09-02 21:14:28 +04:00
John Preston 7b005c64e0 Workaround MSVC 17.3.2 ICE. 2022-08-26 09:47:03 +04:00
John Preston 11b711c43f Fix realtime "Large emoji" applying to only-custom-emoji. 2022-08-16 09:29:02 +03:00
John Preston 5f8fca0355 Don't allow custom emoji pseudo-links in EditLink. 2022-08-15 18:41:37 +03:00
John Preston 2c0a38d356 Don't unload emoji sets.
Fixes #24933.
2022-08-15 15:52:27 +03:00
John Preston 2846b2f7a5 Fix stickers list footer last icon. 2022-08-15 14:23:07 +03:00
John Preston c126a1e56e Simplify CustomEmojiId. 2022-08-15 13:17:24 +03:00
John Preston fede1ff173 Simplify stickers inner API. 2022-08-15 11:34:22 +03:00
John Preston 94e4a8981f Specify gift box sticker explicitly. 2022-08-15 10:42:06 +03:00
John Preston 01f28b4d52 Use CustomEmoji instances for categories in the panel. 2022-08-11 20:56:33 +03:00
John Preston 8bc807dc40 Set name / phone texts on-demand. 2022-08-09 14:12:19 +03:00
John Preston dfb3346096 Better replace many same emoji at once. 2022-08-08 15:34:04 +03:00
John Preston a098abefd7 Replace many same emoji at once. 2022-08-08 15:24:11 +03:00
John Preston f63984c9e3 Don't select first result on animated emoji suggestion. 2022-08-08 14:57:33 +03:00
John Preston 7c284a9453 Drop custom emoji correctly in message edit preview. 2022-08-04 20:55:50 +03:00
John Preston 9b92700c24 Add additional cloud premium stickers to fake-set. 2022-08-04 17:48:36 +03:00
John Preston 068d3caef5 Allow hiding Premium Stickers fake-sticker-set. 2022-08-04 17:29:49 +03:00
John Preston c8ec183c88 Fix custom emoji suggestions geometry. 2022-08-04 17:06:02 +03:00
John Preston e438cb57bc Show, send and receive interactions in single custom emoji. 2022-08-04 16:10:36 +03:00
John Preston 543bfab24a Resolve custom emoji in OnlyCustomEmoji media. 2022-08-04 14:31:15 +03:00
John Preston f8e22210e7 Move Webm sticker to UnwrappedMedia. 2022-08-04 13:35:34 +03:00
John Preston 7a88f9434e Support OnlyCustomEmoji unwrapped messages. 2022-08-03 20:43:26 +03:00
John Preston 8a91c949c2 Fix build with GCC and Clang. 2022-08-03 20:41:01 +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
John Preston 2319278c92 Suggest animated emoji by regular emoji. 2022-08-02 17:57:59 +03:00
John Preston 4a5592e95d Show premium mark in suggested stickers. 2022-08-02 16:47:53 +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 8bb3cd7e65 Push click handler context to Api::ActivateBotCommand. 2022-07-28 20:03:38 +03:00
23rd de7f983aeb Changed sort by DocumentId wit sort by index for gift sticker fallback. 2022-07-28 02:49:07 +03:00
John Preston e64190fb64 Fix crash in attached emoji preview. 2022-07-27 12:26:22 +03:00
John Preston a58c41be96 Fix scrolling of emoji categories. 2022-07-26 20:12:14 +03:00
John Preston 3c352cad40 Don't scroll outer categories through inner categories. 2022-07-26 20:12:14 +03:00
John Preston 4cf4b6a368 Optimize emoji / stickers update requests. 2022-07-26 20:12:14 +03:00
John Preston 4f7aa15416 Fix emoji panel footer updating. 2022-07-26 20:12:14 +03:00
John Preston e492a18194 Add emoji subcategory icon color. 2022-07-26 20:12:14 +03:00
John Preston edfb7bb65a Support custom emoji in IsolatedEmoji. 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 c51837cfdf Reuse SizeTag::Large emoji instances. 2022-07-26 20:12:13 +03:00
John Preston 076d5c756a Fix build with Xcode and GCC. 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 19f89b1d87 Collapse unavailable premium emoji sets in the 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 b4b55973b5 Request and cache featured emoji sets. 2022-07-26 20:12:13 +03:00
John Preston b31a3ba5a3 Improve emoji set box design. 2022-07-26 20:12:13 +03:00
John Preston 4c45ddfde1 Fix slot machine stickers size. 2022-07-26 20:12:13 +03:00
John Preston 18a6f7d700 Make 8 column emoji picker by default. 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 c9aec6a170 Update emoji to Unicode 14. 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 04d4fdbf9b Support suggestions of custom emoji. 2022-07-26 20:12:12 +03:00
John Preston 8383caa2b5 Fix build with Xcode. 2022-07-26 20:12:12 +03:00
23rd 391082712a Added fallback sticker for pack for premium gifts even without order. 2022-07-26 20:12:11 +03:00
23rd b7189556f8 Respected order from special pack for premium gifts. 2022-07-26 20:12:11 +03:00
John Preston 240b47da86 Check test/production DC in recent emoji. 2022-07-26 20:12:11 +03:00
John Preston 323c2a6aa5 Don't send custom emoji links to generate previews. 2022-07-26 20:12:11 +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
John Preston 66b2bdd656 Improve footer custom emoji sizes. 2022-07-26 20:12:11 +03:00
23rd e84f5aaa3d Added support of service actions for premium gifts. 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 c0ec3a23bb Remove old emoji panel footer code. 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 64f25a6dae Fix sticker sets icons scrollMax. 2022-07-26 20:12:10 +03:00
John Preston f1144965c0 Scroll expanded emoji category icons by wheel. 2022-07-26 20:12:10 +03:00
John Preston 007cb9d156 Allow dragging the expanded emoji categories. 2022-07-26 20:12:10 +03:00
John Preston 57d5ec4513 Handle clicks on expandable emoji category icons. 2022-07-26 20:12:10 +03:00
John Preston 3dfe48a407 Display selected emoji set in footer by background. 2022-07-26 20:12:10 +03:00
John Preston 0bd9d5f7ae Expand emoji categories in the footer. 2022-07-26 20:12:10 +03:00
John Preston d3f62d971d Use unified StickersListFooter for emoji / stickers. 2022-07-26 20:12:10 +03:00
John Preston 54d683171d Allow to open / remove sets from emoji panel. 2022-07-26 20:12:10 +03:00
John Preston a7e295ae64 Fix build with Xcode. 2022-07-26 20:12:10 +03:00
John Preston ddd5021966 Minimal emoji sets support. 2022-07-26 20:12:10 +03:00
23rd 99676c4cf8 Moved some premium styles to separate file. 2022-07-26 20:12:09 +03:00
John Preston 0ed434cfaf Show all stickers as emoji after default categories. 2022-07-26 20:12:09 +03:00
John Preston c01d9747e7 Fix inline via @bot click in additional windows
Fixes #24717.
2022-07-26 20:12:09 +03:00
John Preston 2fc43a44a4 Don't paste custom emoji for non-premium users. 2022-07-26 20:12:08 +03:00
John Preston ee8d8171f7 Support custom emoji in custom notification replies. 2022-07-26 20:12:08 +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 2499955496 Support custom emoji in the message input field. 2022-07-26 20:12:08 +03:00
John Preston 6db3a0ec98 Support optimized lottie emoji. 2022-07-26 20:12:08 +03:00
John Preston 21aa1323ec Provide custom emoji factory through MarkedTextContext. 2022-07-26 20:12:08 +03:00
John Preston 5fe1988d0a Suggest bot commands only in the start of the field. 2022-06-18 00:01:47 +04:00
23rd 13146e9c06 Replaced use of raw MTP* bot commands with new transitional classes. 2022-06-14 18:51:18 +04:00
23rd 5f8608ed90 Moved out BotCommand struct to separated file. 2022-06-14 18:45:12 +04:00
John Preston 5f9eeb7cbe Show premium star while preview video loads. 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 1d475ee727 Slightly optimized includes in application.h. 2022-06-12 16:07:41 +03:00
John Preston f78b9324dc Show videos in premium preview boxes. 2022-06-10 12:05:16 +04:00
23rd 43c0197445 Removed Ui::hideLayer from places that can be in non-primary windows. 2022-06-09 07:06:01 +03:00
John Preston b750908dff Refresh stickers when premium becomes possible. 2022-06-08 19:29:16 +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 719190d570 Improve locked premium stickers design. 2022-06-06 16:08:11 +04:00
John Preston 569cea98b4 Redesign premium reactions preview box. 2022-06-01 11:59:14 +04: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 853cafe195 Show premium stickers lock icon. 2022-05-20 18:57:01 +04:00
John Preston ad3c6ebb1e Use / cache the same sticker / effect size in preview. 2022-05-19 19:05:07 +04:00
John Preston b02a965778 Add premium sticker packs icon. 2022-05-19 17:30:02 +04:00
John Preston ca731968ca Improve premium sticker sync / preview. 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 af9a252b64 Show premium stickers fake-set in the panel. 2022-05-19 17:27:02 +04:00
John Preston 2ece565aac Mirror premium sticker thumbnail / path. 2022-05-19 17:27:01 +04:00
John Preston ea30918d35 Fix build with GCC. 2022-04-07 18:28:58 +04:00
John Preston f6559c01e4 Fix sticker image caching in case cell size changes. 2022-03-31 15:24:58 +04:00
23rd 2846aa2f77 Moved SendMenu to separated folder. 2022-03-27 17:59:30 +03:00
23rd 0b336a2954 Fixed sending animation from inline bots with unexpected result type. 2022-03-15 18:02:30 +03:00
John Preston 32d09f189b Use rpl::empty instead of rpl::empty_value(). 2022-03-11 09:56:29 +04:00
John Preston 173fdf8056 Send GIFs search results without "via @bot". 2022-03-07 11:09:14 +04:00
23rd 309d4ea702 Added ability to provide field style to EditLinkBox. 2022-03-06 18:11:47 +03:00
23rd cf55f1a7cd Added ability to use EditLinkBox without SessionController. 2022-03-06 18:11:47 +03:00
23rd 87bdfaf731 Added ability to skip dictionaries manager in context menu. 2022-03-06 18:11:47 +03:00
23rd b5aafa521a Replaced EditLinkBox with generic box. 2022-03-04 11:25:10 +03:00
23rd 5e13949eda Added ability to initialize spellchecker without SessionController. 2022-03-04 11:25:10 +03:00
23rd b900ac2b1d Removed Window::SessionController from ManageDictionariesBox. 2022-03-04 11:25:10 +03:00
Klemens Nanni 6decece009 Remove unused variables 2022-02-28 23:11:07 +03:00
23rd 5718789d53 Replaced Ui::InformBox and Ui::ConfirmBox with GenericBox. 2022-02-28 09:08:01 +03:00
John Preston 1710863231 Update some icons. 2022-02-27 20:26:52 +03:00
23rd 2e40798e8e Added simple animation of GIFs sending. 2022-02-25 19:41:16 +03:00
23rd a0a857a6db Added simple animation of stickers sending from autocomplete field. 2022-02-25 19:41:16 +03:00
23rd d633860e1d Added simple animation of static stickers sending. 2022-02-25 19:41:15 +03:00
John Preston c39f15bd71 Fix build with VS 2022 17.1. 2022-02-25 14:14:43 +03:00
Ilya Fedin 9309f98094 Fix Hunspell spellchecking with Qt 6 2022-02-19 16:00:24 +03:00
John Preston f6bfe2c9a8 Mark all reactions as read context menu. 2022-01-28 19:10:07 +03:00
John Preston e9c79886d2 Track unread mentions and unread reactions the same way. 2022-01-28 19:10:07 +03:00
John Preston 2a99f1a1ef Add tabbed-panel-show-on-click option. 2022-01-28 19:10:07 +03:00
John Preston b4eb25de58 Support webm stickers in StickerSetBox. 2022-01-28 19:10:07 +03:00
John Preston d96a8d028a Support webm stickers in field autocomplete. 2022-01-28 19:10:07 +03:00
John Preston c359646702 Animate webm pack icon in the panel. 2022-01-28 19:10:07 +03:00
John Preston 51fef843f0 Optimize sets stickers / gifs panel repainting. 2022-01-28 19:10:07 +03:00
John Preston f1d9cca119 Fix crash and pause in stickers panel with webm. 2022-01-28 19:10:07 +03:00
John Preston 8e749173de Render webm stickers in StickersListWidget. 2022-01-28 19:10:07 +03:00
John Preston 20dbf18106 Init webm player for sticker set thumbnails. 2022-01-28 19:10:07 +03:00
John Preston 8b7d2c880e Support rendering Webm videos with alpha. 2022-01-28 19:10:07 +03:00
23rd 8bea6776f5 Replaced checking global key modifiers with qt adapters. 2022-01-26 10:34:38 +03:00
23rd 0143d22a21 Split qt_adapters to separated files. 2022-01-26 10:33:28 +03:00
John Preston 3ff17a8789 Refactor image transformation interfaces. 2022-01-21 15:33:44 +03:00
John Preston fe7b120003 Fix possible crash in dictionaries download.
Fixes #17258.
2022-01-05 01:04:38 +03:00
23rd 90dedb7b70 Added spoiler support to input field. 2021-12-29 21:22:33 +03:00
John Preston 2c36623cfb Add some icons to popup menus. 2021-12-29 21:22:33 +03:00
John Preston 5e7e7eaa83 FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
23rd 3647241f71 Removed unused MTP::Error from callbacks on fail. 2021-11-30 17:37:07 +04:00
John Preston 92e398e0b7 Support new skin color modifiers in rlottie. 2021-11-30 16:05:52 +04:00
23rd b9c64499bd Moved code for api participants to separated file. 2021-11-26 18:00:21 +04:00
John Preston 4f7c728632 Update API scheme on layer 135. 2021-11-26 18:00:20 +04:00
John Preston 773755d70e Send as a channel in HistoryWidget. 2021-11-26 18:00:18 +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
23rd 27dc91e51a Moved management of selecting scroll to separated class in td_ui. 2021-10-30 21:22:51 +03: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 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 21ac2b8f3a Don't use MTP* for reply markup data. 2021-10-04 23:47:30 +04:00
John Preston b78b27f517 Move dialogs_layout to dialogs/ui/. 2021-10-04 23:45:21 +04:00
23rd cb8f49aea0 Removed Q_OBJECT from ScrollArea. 2021-09-30 18:45:38 +03:00
John Preston 1e660fc2a2 Allocate 64 bits for message ids. 2021-09-30 13:49:37 +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 a566405598 Show correct emoticon in interaction-seen status. 2021-09-19 14:40:43 +03:00