AyuGramDesktop/Telegram/SourceFiles/ayu
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
..
data feat: Implement local messages feature 2025-05-21 22:00:04 +00:00
features fix: messageshot on macOS 2025-01-31 03:07:17 +03:00
libs chore: update sqlite_orm 2025-03-13 13:26:43 +03:00
ui feat: Implement local messages feature 2025-05-21 22:00:04 +00:00
utils chore: refactor settings 2025-05-05 20:36:16 +03:00
ayu_constants.h chore: update copyright 2025-01-16 13:08:58 +03:00
ayu_infra.cpp chore: refactor settings 2025-05-05 20:36:16 +03:00
ayu_infra.h chore: update copyright 2025-01-16 13:08:58 +03:00
ayu_lang.cpp chore: update copyright 2025-01-16 13:08:58 +03:00
ayu_lang.h chore: update copyright 2025-01-16 13:08:58 +03:00
ayu_settings.cpp chore: refactor settings 2025-05-05 20:36:16 +03:00
ayu_settings.h chore: refactor settings 2025-05-05 20:36:16 +03:00
ayu_state.cpp chore: update copyright 2025-01-16 13:08:58 +03:00
ayu_state.h chore: update copyright 2025-01-16 13:08:58 +03:00
ayu_url_handlers.cpp fix: more checks for disposal 2025-03-09 00:30:18 +03:00
ayu_url_handlers.h chore: update copyright 2025-01-16 13:08:58 +03:00
ayu_worker.cpp chore: refactor settings 2025-05-05 20:36:16 +03:00
ayu_worker.h chore: update copyright 2025-01-16 13:08:58 +03:00