Commit Graph

73 Commits

Author SHA1 Message Date
Ilya Fedin d52d82f7e6 Fix GCC 15 -Wrange-loop-construct 2026-03-03 12:16:32 +04:00
John Preston 9316cec95d Rewrite settings_premium to new builder pattern
- Move settings_premium.h/cpp from settings/ to settings/sections/
- Add BuildHelper with kMeta for search indexing
- Index premium features and subscribe button for search
- Keep complex Premium section UI (custom top bar, feature list) as non-indexed
- Update all include paths across the codebase

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 11:55:20 +04:00
23rd bb3f54efcb Fixed stacking of tabbed panel after successful sent gif with caption. 2026-01-02 17:46:55 +03:00
John Preston 08a979e638 Use more simple tr::... text helpers. 2025-12-15 21:40:54 +04:00
Sean Wei 5a6a5fd4d1 Change const T&& parameters to T&& to enable proper move semantics
Previously some constructors/functions used `const T&&`, which prevents
calling the move constructor. This commit removes the `const` qualifier
so that `std::move` actually performs a move.
2025-06-27 20:50:08 +04:00
John Preston fecddb5203 Allow wearing collectibles from emoji status. 2025-01-22 22:13:26 +04:00
John Preston 51213b499f Start showing gifts from stories. 2025-01-22 22:13:25 +04:00
John Preston 9d74d93ed7 Fix some warnings from PVS-Studio.
Fixes #28667.

Some warnings fixed detailed in this post:
https://pvs-studio.com/en/blog/posts/cpp/1186/
2024-11-18 12:50:36 +04:00
John Preston e89f2b55e8 Support arbitrary content in toasts. 2024-08-14 18:17:49 +02:00
23rd 3cc92e01fe Added ability to force request favorite stickers. 2024-07-31 16:50:04 +03:00
John Preston 9c77346f36 Fix build with Xcode and GCC. 2024-05-02 14:11:20 +04:00
John Preston bb6fd4bc4d Update scheme, new sticker categories. 2024-05-01 12:47:20 +04:00
John Preston da7a796edb Add session->appConfig() shortcut. 2024-04-01 22:44:22 +04:00
John Preston 85554d19e4 Show chat intro in an empty chat. 2024-04-01 22:44:21 +04:00
John Preston 90e572c8b1 Improve mixed stickerpacks support. 2024-04-01 22:44:20 +04:00
John Preston 65afa2c402 Detach ComposeControls from SessionController. 2023-05-17 15:51:52 +04:00
John Preston 21f3a7b07f Find emoji by words for stickers search. 2023-02-02 22:12:31 +04:00
John Preston c48ac28204 Search stickers by emoji. 2023-02-02 22:12:31 +04:00
John Preston 1ef0791bc6 Fix OOM crash on wrong attached stickers hash.
Fixes #25495.
2022-12-29 17:11:24 +04:00
John Preston 54a12aa74f Update API scheme on layer 151. 2022-12-26 14:24:06 +04:00
23rd 2acedca6b7 Replaced some qstr with u""_q literal. 2022-11-29 14:12:50 +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 e3140a8a45 Implement premium sticker-by-emoji suggestions. 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 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 de0eef8cc6 Update API scheme on layer 144. 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 a821c3c31d Support thumb_document_id in emoji sets. 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 afc7b1da62 Update API scheme on layer 144. 2022-07-26 20:12:10 +03:00
23rd 7b00671ccf Moved out all values of premium limits to single place. 2022-06-16 13:29:37 +03:00
23rd 629574685e Fixed display of most of simple toasts in corresponding window. 2022-06-14 14:24:21 +03:00
John Preston d1907083ed Add FileSizeLimitBox and pass "ref" to premium payment. 2022-05-23 18:46:15 +04:00
John Preston 5cd065ef6b Show premium page on limit increase decision. 2022-05-20 17:12:56 +04:00
John Preston dd05fb4d14 Show limit toasts and boxes. 2022-05-19 17:27:02 +04:00
23rd df125bac19 Removed Ui::ConfirmDontWarnBox. 2022-02-28 09:08:01 +03:00
23rd 5718789d53 Replaced Ui::InformBox and Ui::ConfirmBox with GenericBox. 2022-02-28 09:08:01 +03:00
John Preston 8b7d2c880e Support rendering Webm videos with alpha. 2022-01-28 19:10:07 +03:00
23rd 3647241f71 Removed unused MTP::Error from callbacks on fail. 2021-11-30 17:37:07 +04:00
John Preston 4f7c728632 Update API scheme on layer 135. 2021-11-26 18:00:20 +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 8069fdd873 Use base/random.h instead of openssl::RandomValue. 2021-09-15 13:42:22 +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 a6c98f4bb4 Update API scheme to layer 133. 2021-09-07 23:41:07 +03:00
Ilya Fedin 79cc797aff Fix -Wunused-variable warnings 2021-07-13 21:43:34 +03:00