Commit graph

17700 commits

Author SHA1 Message Date
John Preston
9dfaac8582 Optimize some request channel full requests. 2025-06-27 21:29:39 +04:00
John Preston
bd5b9f5347 Make less channel full requests. 2025-06-27 21:29:39 +04:00
John Preston
ff4b9a3cfe Improve suggest post UI. 2025-06-27 21:29:35 +04:00
John Preston
e844d7ed89 Use phrase from lang.strings for TON gift. 2025-06-27 21:29:35 +04:00
John Preston
f3ae8f7f75 Fix styles in discussion group management. 2025-06-27 21:29:35 +04:00
John Preston
f137eddbf9 Use correct premium promo for To-Do Lists. 2025-06-27 21:29:35 +04:00
John Preston
c70f75b21a Add Stars/TON checks to suggestions. 2025-06-27 21:29:35 +04:00
John Preston
141fb875f9 Add icons to suggestion buttons. 2025-06-27 21:29:35 +04:00
John Preston
344d47e7dd Fix stars amount check. 2025-06-27 21:29:35 +04:00
John Preston
4840a9094b Check amounts of stars/TON. 2025-06-27 21:29:35 +04:00
John Preston
6f305c8974 Improve layout in suggested price box. 2025-06-27 21:29:35 +04:00
John Preston
c83bae3bb5 Use correct icon in post suggesting. 2025-06-27 21:29:35 +04:00
John Preston
4c1b962486 Support adding an offer to existing message. 2025-06-27 21:29:35 +04:00
John Preston
b929e2a7b2 Update API scheme on layer 160, show correct warnings. 2025-06-27 21:29:35 +04:00
John Preston
1ecd7aa7cf Implement suggestion of changes. 2025-06-27 21:29:34 +04:00
John Preston
881aed50ea Support _suggestOptions for changes in ComposeControls. 2025-06-27 21:29:34 +04:00
John Preston
6272b79f70 Allow suggesting with TON. 2025-06-27 21:29:34 +04:00
John Preston
0fa50f1951 Update API scheme on layer 206. 2025-06-27 21:29:34 +04:00
John Preston
dc19f2e76c Start suggesting changes to messages by editing. 2025-06-27 21:29:34 +04:00
John Preston
498116c3f6 Show correctly change suggestions. 2025-06-27 21:29:34 +04:00
John Preston
e29dcf7489 Update API scheme on layer 206. Re-Suggest. 2025-06-27 21:29:34 +04:00
John Preston
ec28eea7f0 Make keyboard fully shown with media. 2025-06-27 21:29:34 +04:00
John Preston
ebce4d0f31 Show suggested service info. 2025-06-27 21:29:34 +04:00
John Preston
bf9492e083 Show approve/decline service messages. 2025-06-27 21:29:34 +04:00
John Preston
cb987c1baf PoC suggested accept/decline. 2025-06-27 21:29:34 +04:00
John Preston
e4a4be1f53 Don't show visibility status in opened-by-link gifts. 2025-06-27 21:29:34 +04:00
John Preston
f6d1fe6c04 Update API scheme on layer 206. 2025-06-27 21:29:34 +04:00
John Preston
7e5a29a5cc PoC suggesting posts to channels. 2025-06-27 21:29:34 +04:00
John Preston
8dbc175c02 Update API scheme on layer 206. 2025-06-27 21:29:33 +04:00
John Preston
0473374d51 Allow admin sending to monoforum for free. 2025-06-27 21:29:33 +04:00
John Preston
b2d7342b9e Attempt to fix monoforum muted setting. 2025-06-27 21:29:33 +04:00
John Preston
b965aecc6c Update API scheme to layer 206. 2025-06-27 21:29:33 +04:00
John Preston
9290c90bdc Allow fully editing todo lists. 2025-06-27 21:29:33 +04:00
John Preston
d83a80ec53 Improve adding tasks to todo lists. 2025-06-27 21:29:33 +04:00
John Preston
248fe1b53f Add tasks to todo lists. 2025-06-27 21:29:33 +04:00
John Preston
bf217bf7aa Check premium for todo lists actions. 2025-06-27 21:29:33 +04:00
John Preston
e5de8e22b7 Add fireworks on ending a task list. 2025-06-27 21:29:33 +04:00
John Preston
5666e84d92 Add ability to create todo lists. 2025-06-27 21:29:33 +04:00
John Preston
a97d1b8669 Support task lists view/update/actions. 2025-06-27 21:29:33 +04:00
John Preston
06db13a0ab Update API scheme to layer 205. 2025-06-27 21:29:33 +04:00
John Preston
9832af7cce Show messages from channels in monoforums. 2025-06-27 21:29:32 +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
Neurotoxin001
2250fe75c4
fix: use custom serialization for settings
The error occurred when adding a new fields, for example showForwards, to the AyuGramSettings class. The NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT macro was used for serialization, which works correctly only when the number of parameters is up to 64. After extending the structure, the macro failed to expand and the compiler started generating messages about undefined identifiers like NLOHMANN_JSON_TO.

The fix was to replace the problematic macro with manual implementation of to_json and from_json functions. For each field, it is now explicitly specified how to serialize and deserialize it, which eliminates the limitation on the number of arguments. Additionally, auxiliary macros NLOHMANN_JSON_TO, NLOHMANN_JSON_FROM and NLOHMANN_JSON_FROM_WITH_DEFAULT have been declared in case they are absent in the header file used.

More info: https://json.nlohmann.me/api/macros/nlohmann_define_type_intrusive/#notes
2025-06-26 19:08:41 +03:00
Neurotoxin001
717d197998
fix: image order when downloading albums 2025-06-26 18:36:25 +03:00
John Preston
2e4a437d32 Version 5.15.4.
- Fix updating messages in Saved Messages subchats.
- Fix possible issues with mouse cursor on Linux.
2025-06-12 22:07:05 +04:00
John Preston
63e1d6dab6 Fix saved messages sublists updates. 2025-06-12 22:07:02 +04:00
John Preston
959229f143 Version 5.15.3.
- Fix new contact top bar appearance.
- Remove change photo button for channel direct messages.
2025-06-09 09:39:02 +04:00
John Preston
22f9b1a0b1 Hide photo change button for monoforums. 2025-06-09 09:37:51 +04:00
John Preston
a8fc5a722f Fix display of contact status. 2025-06-09 09:37:51 +04:00
AlexeyZavar
69420f5750 chore: refactor & reformat settings 2025-06-08 11:00:04 +03:00