AyuGramDesktop/Telegram/SourceFiles/history
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
..
admin_log Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
view feat: restore caption from send files box 2025-05-19 00:59:34 +03:00
history.cpp Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
history.h Show new-peer-info photo/name change. 2025-03-07 19:03:41 +04:00
history_drag_area.cpp Slightly improved code style for long equality expressions. 2024-04-15 11:20:30 +04:00
history_drag_area.h Slightly improved code style for long equality expressions. 2024-04-15 11:20:30 +04:00
history_inner_widget.cpp Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
history_inner_widget.h Merge tag 'v5.13.1' into dev 2025-04-25 02:29:09 +03:00
history_item.cpp Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
history_item.h Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
history_item_components.cpp chore: refactor settings 2025-05-05 20:36:16 +03:00
history_item_components.h Allow fast bot mode without support mode. 2025-02-12 11:39:26 +04:00
history_item_edition.cpp Add carousel animation for emoji fingerprint. 2025-05-01 11:13:20 +04:00
history_item_edition.h Add carousel animation for emoji fingerprint. 2025-05-01 11:13:20 +04:00
history_item_helpers.cpp chore: change links 2025-05-20 22:59:22 +03:00
history_item_helpers.h Add carousel animation for emoji fingerprint. 2025-05-01 11:13:20 +04:00
history_item_reply_markup.cpp Prepared messages sharing from miniapp. 2024-11-17 15:08:16 +04:00
history_item_reply_markup.h Prepared messages sharing from miniapp. 2024-11-17 15:08:16 +04:00
history_item_text.cpp Track factcheck text and create media. 2024-05-30 21:35:07 +04:00
history_item_text.h Copy text with expanded links only to external. 2019-04-08 19:10:06 +04:00
history_location_manager.cpp Replace various QDesktopService::openUrl with File::OpenUrl for correct operation on Linux 2022-12-23 14:02:25 +04:00
history_location_manager.h Inspect correct url() instead of dragText(). 2023-01-12 11:34:16 +04:00
history_translation.cpp Initial chat-translation feature implementation. 2023-02-02 22:12:32 +04:00
history_translation.h Initial chat-translation feature implementation. 2023-02-02 22:12:32 +04:00
history_unread_things.cpp Apply short topic info from channelMessages. 2022-11-22 00:26:48 +00:00
history_unread_things.h Extract Data::Thread common for History / ForumTopic. 2022-11-01 19:25:37 +04:00
history_view_highlight_manager.cpp Update API scheme to layer 167. 2023-11-28 21:55:23 +04:00
history_view_highlight_manager.h Update API scheme to layer 167. 2023-11-28 21:55:23 +04:00
history_view_swipe_back_session.cpp Replaced SetupSwipeHandler signature from arguments to struct. 2025-03-24 22:58:04 +03:00
history_view_swipe_back_session.h Added ability to swipe-to-back to other sections. 2025-03-12 11:59:20 +04:00
history_view_top_toast.cpp Simplify marked text context logic. 2025-03-07 19:03:40 +04:00
history_view_top_toast.h Fix crash in quiz explanation with spoilers. 2022-11-01 19:25:35 +04:00
history_widget.cpp feat: Implement local messages feature 2025-05-21 22:00:04 +00:00
history_widget.h Merge tag 'v5.13.1' into dev 2025-04-25 02:29:09 +03:00