AyuGramDesktop/Telegram/SourceFiles/ayu/ui
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
..
boxes chore: refactor settings 2025-05-05 20:36:16 +03:00
components fix: messageshot on macOS 2025-01-31 03:07:17 +03:00
context_menu fix: make it build 2025-05-19 00:32:36 +03:00
message_history feat: Implement local messages feature 2025-05-21 22:00:04 +00:00
settings chore: refactor settings 2025-05-05 20:36:16 +03:00
utils chore: refactor settings 2025-05-05 20:36:16 +03:00
ayu_icons.style feat: show badges in dialogs list 2025-01-30 23:04:03 +03:00
ayu_logo.cpp chore: refactor settings 2025-05-05 20:36:16 +03:00
ayu_logo.h feat: extera icon 2025-01-17 19:20:46 +03:00
ayu_styles.style feat: show toast 2025-01-17 18:56:20 +03:00