Commit graph

17710 commits

Author SHA1 Message Date
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
AlexeyZavar
20976ac9f9 fix: ttl messages destroying 2025-06-06 21:27:39 +03:00
AlexeyZavar
dc33accae7 chore: update sqlite3 2025-06-06 11:38:15 +03:00
AlexeyZavar
29d1f1f14a fix: copy sticker owner ID if not found 2025-06-06 11:37:52 +03:00
John Preston
dcbda7b3af Version 5.15.2.
- Fix sending messages in new forum layout.
- Add statistics for user stars.
2025-06-05 22:55:29 +04:00
John Preston
553cc0c6ae Fix new forum messages sending. 2025-06-05 21:26:50 +04:00
23rd
067dcbfbeb Added initial entry point for self statistics of credits. 2025-06-05 19:59:02 +03:00
23rd
759258bb39 Added support of statistics availability to Credits component. 2025-06-05 19:49:25 +03:00
John Preston
3667ef551c Version 5.15.1.
- Fix launch on Windows 7.
- Fix launch on older Linux distributions.
- Fix crash in group chat message right click.
- Fix unread counters in channel direct messages.
- Don't generate "User joined" message in channel direct messages.
- Fix some other glitches in new forums and channel direct messages.
2025-06-05 19:08:28 +04:00
John Preston
bfb4652425 Realtime update admin status in members list. 2025-06-05 16:09:41 +04:00
John Preston
03c24e2906 Show better monoforum chat info column. 2025-06-05 15:29:26 +04:00
John Preston
dc61faace1 Handle disabling direct messages in channel. 2025-06-05 15:29:26 +04:00
John Preston
73ea86ceeb Improve monoforum chat profiles. 2025-06-05 14:24:30 +04:00
John Preston
9a622ab466 Add view channel button to monoforum info. 2025-06-05 14:09:03 +04:00
John Preston
65cfd6c81c Fix new forum layout search and topics list. 2025-06-05 13:55:55 +04:00
John Preston
08681ac1b9 Show join requests in new forums layout. 2025-06-05 13:39:33 +04:00
John Preston
f9acb5d19b Fix activation of wrong tab after new window. 2025-06-05 13:00:14 +04:00
John Preston
e9e187c58b Ctrl+Click to open subsection in a new window. 2025-06-05 12:54:59 +04:00
John Preston
3bc20c3550 Save last opened subsection within a launch. 2025-06-05 12:47:16 +04:00
John Preston
4b25406d14 Remove delay when switching subsection tabs. 2025-06-05 12:19:27 +04:00
John Preston
265b7904a8 Fix blockquote/code captions to media in reply bar. 2025-06-05 12:10:31 +04:00
John Preston
fb2274c58d Fix glitch in new forum layout opening. 2025-06-05 12:04:28 +04:00
John Preston
3cfdc9d897 Fix setting group emoji status. 2025-06-05 11:40:05 +04:00
John Preston
11986ac698 Show star in channel direct messages settings. 2025-06-05 11:33:43 +04:00
John Preston
a08436ecd2 Fix unread counters in filters with monoforums. 2025-06-05 11:04:23 +04:00
John Preston
e92adf94a7 Improve adaptive loading in subsection tabs. 2025-06-05 10:45:13 +04:00
John Preston
0adb3b062f Use only first name in birthday notification. 2025-06-05 09:55:16 +04:00
John Preston
9316480884 Don't generate joined message in monoforums. 2025-06-05 09:22:44 +04:00
John Preston
4e5082f6c6 Fix comments root view position.
Fixes #29389.
2025-06-05 09:06:19 +04:00
John Preston
16d5dbe71c Fix crash in group chat context menu.
Fixes #29387.
2025-06-05 08:59:07 +04:00
John Preston
4659d5db5d Version 5.15.
- Send Direct Messages to Channels.
- Enable New Tab Layout for Topics.
- Create Polls with Up To 12 Options.
2025-06-04 22:56:02 +04:00
John Preston
5c4b1f6638 Show message author to admins in monoforums. 2025-06-04 21:33:27 +04:00
John Preston
ee3d70f879 Fix glitching userpics in monoforum. 2025-06-04 21:05:08 +04:00
John Preston
7dadaa1b28 Save subsection tabs layout to disk. 2025-06-04 19:39:34 +04:00
John Preston
a72782e232 Use server provided default stars count for direct. 2025-06-04 18:42:17 +04:00
John Preston
8654ffb6fb Don't show "Who Viewed" in monoforums. 2025-06-04 18:26:48 +04:00
John Preston
90e445eec9 Don't show notifications from other admins. 2025-06-04 18:26:30 +04:00
John Preston
910b6d8879 Fix unread mark badge in new forums layout. 2025-06-04 18:13:21 +04:00
John Preston
8d1c2f832d Add "Create topic" to new forum view. 2025-06-04 17:59:25 +04:00
John Preston
158d2a4124 Fix possible stack overflow in subsection tabs. 2025-06-04 17:59:10 +04:00
John Preston
66473738d6 Add simple shadow to subsection tabs. 2025-06-04 17:26:23 +04:00