Commit graph

3175 commits

Author SHA1 Message Date
google-labs-jules[bot]
31cb5f620b feat: Implement local messages feature
This commit introduces the ability for you to add messages locally to a chat. These messages are displayed only on the client and are not sent to the server.

Key changes include:

- Data Layer:
    - Added a new `LocalMessage` class inheriting from `AyuMessageBase` in `ayu/data/entities.h`.
    - Implemented functions in `ayu/data/messages_storage.cpp` and `.h` (`addLocalMessage`, `getLocalMessages`, `hasLocalMessages`) to manage the storage of these messages in the AyuGram SQLite database, including creating a new table for local messages.
- UI and Display:
    - Modified `ayu/ui/message_history/history_item.cpp` to ensure `LocalMessage` objects are rendered in the chat history.
    - Added a visual distinction for local messages by prepending "[Local] " to their text content.
- UI Flow:
    - Implemented a new dialog box (`AddLocalMessageBox` in `boxes/add_local_message_box.cpp` and `.h`) for composing local messages, allowing you to specify a sender name (defaults to the current user) and the message text.
    - Added a context menu option ("Add Local Message") to the message input field in `HistoryWidget` to launch this dialog.
- Testing:
    - Defined a suite of manual test cases covering data storage, retrieval, UI display, and the creation flow via the new UI, ensuring the feature's correctness and usability.

This feature enhances AyuGram by allowing you to annotate chats or add notes directly within the message flow, visible only to yourselves.
2025-05-21 22:00:04 +00:00
AlexeyZavar
3c7f3e8740 chore: change links 2025-05-20 22:59:22 +03:00
AlexeyZavar
3a9899529a fix: reordering crashes 2025-05-20 22:56:30 +03:00
AlexeyZavar
be378eaacb feat: simple files reordering in send box 2025-05-19 15:44:02 +03:00
AlexeyZavar
631f5a1043 feat: restore caption from send files box 2025-05-19 00:59:34 +03:00
AlexeyZavar
e572da4927 Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
John Preston
b20caee548 Check if the resale gift price changed. 2025-05-18 14:12:18 +04:00
John Preston
efb566bcc7 Don't show resale gifts as "sold out". 2025-05-15 14:50:27 +04:00
John Preston
53e8df3542 Sort resale gifts by Price by default. 2025-05-15 14:50:22 +04:00
23rd
ba31bbace8 Added refresh of top bar suggestion on day changed for birthdays. 2025-05-15 10:08:44 +03:00
23rd
606dfd29d3 Moved out data of contact birthdays to promo suggestions class. 2025-05-15 10:08:22 +03:00
John Preston
66d512f26f Version 5.14.2.
- Buy Rare Gifts in the Marketplace.
- Sell Your Gifts for Stars.
- Set Your Channel to Auto-Translate.
2025-05-09 10:01:55 +04:00
John Preston
a74635ff56 Fix: Hide 'My gifts' tab when gifting to self 2025-05-07 16:52:57 +04:00
John Preston
f96f478470 Rename linked-chat to discussion-link. 2025-05-07 14:58:47 +04:00
23rd
4560a83441 Fixed creation of new filter with selected dialog from menu. 2025-05-07 11:47:00 +03:00
23rd
14328eb601 Fixed right label for only paid reaction in edit peer info box. 2025-05-06 20:50:19 +03:00
AlexeyZavar
409165dec6 chore: refactor settings 2025-05-05 20:36:16 +03:00
John Preston
00e6da9d64 Fix build with Xcode. 2025-05-05 11:43:51 +04:00
John Preston
68b3d75705 Track and show "too early" gift transfer/resell. 2025-05-05 11:43:51 +04:00
John Preston
833341dea7 Show transfer price if transfer from resale. 2025-05-05 11:43:51 +04:00
John Preston
bc3efe2f4c Improve gift resale transaction entries. 2025-05-05 11:43:51 +04:00
John Preston
10e4c59f2e Correct implementation of auto-translation. 2025-05-05 11:43:51 +04:00
John Preston
5d1251f6d8 Improve layout of resale gift counters. 2025-05-05 11:43:50 +04:00
John Preston
bdf802e64a Use TextWithEntities().append(style::IconEmoji). 2025-05-05 11:43:50 +04:00
John Preston
f2b888f9ae Use nice icons in resale gifts sorting. 2025-05-05 11:43:50 +04:00
John Preston
eb81c33308 Allow saving "Autotranslation of Messages" in channels. 2025-05-05 11:43:50 +04:00
John Preston
3375ff6152 Use correct phrases for the resold gifts. 2025-05-05 11:43:50 +04:00
John Preston
c220d4dd17 Handle STARGIFT_RESELL_TOO_EARLY error. 2025-05-05 11:43:50 +04:00
John Preston
15146725e3 Fix transfer of my gifts from Resale. 2025-05-05 11:43:50 +04:00
John Preston
ddfab824c3 Respect gift privacy for resell gifts. 2025-05-05 11:43:50 +04:00
John Preston
04a7f14c0e Add price tag in resale gift view. 2025-05-05 11:43:50 +04:00
John Preston
18f14b828c Allow buying resold gifts. 2025-05-05 11:43:50 +04:00
John Preston
0a92e12a62 Allow placing your gifts on sale. 2025-05-05 11:43:50 +04:00
John Preston
08fdc4f1fc Add "Resale" tab in gift selection. 2025-05-05 11:43:50 +04:00
John Preston
c726bef740 Allow buying reselling gifts. 2025-05-05 11:43:50 +04:00
John Preston
94e0ac3f54 Add resale gift sorting modes icons. 2025-05-05 11:43:50 +04:00
John Preston
284f7fc4f7 Improve resale unique gift display. 2025-05-05 11:43:50 +04:00
John Preston
e629460942 Implement filtering of resale gifts. 2025-05-05 11:43:50 +04:00
John Preston
904e531113 Show resell info in gifts choose box. 2025-05-05 11:43:49 +04:00
AlexeyZavar
939c9afeb4 Merge tag 'v5.14.1' into dev 2025-05-02 01:50:47 +03:00
23rd
28c502bd85 Fixed display of plural phrase in moderate box. 2025-05-01 11:13:22 +04:00
23rd
384c540197 Added special status to peers in gifts list with tomorrow birthday. 2025-05-01 11:13:21 +04:00
23rd
4f0fa66575 Added ability to open profile of user by click on userpic in gift box. 2025-05-01 11:13:21 +04:00
23rd
ecac3a0f16 Added context menu to list in ChooseStarGiftRecipient. 2025-05-01 11:13:21 +04:00
John Preston
53883a7f1f Improve confcall re-create keyboard navigation. 2025-05-01 11:13:20 +04:00
John Preston
53b739139b Suggest invite to empty/discarded joining call. 2025-05-01 11:13:20 +04:00
John Preston
09229812f4 Show nice confcall invites. 2025-05-01 11:13:17 +04:00
John Preston
021115b463 Nice join confcall confirm box. 2025-05-01 11:13:17 +04:00
John Preston
a5f44b3ed6 Fix incorrect naming userpic as public photo. 2025-05-01 11:13:16 +04:00
23rd
6008d9e12b Added birthday sublist to contact list in gift box. 2025-05-01 11:13:01 +04:00