AyuGramDesktop/Telegram
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
..
build Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
cmake Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
codegen@5a0421e462 fix: make it build 2025-05-19 00:32:36 +03:00
lib_base@b4f913beb8 Fixed build of macOS on Github CI. 2025-05-17 09:22:12 +03:00
lib_crl@c1d6b02736
lib_lottie@4038a11f63 Added lottie emoji to box for validate phone number in settings. 2025-05-15 17:58:14 +03:00
lib_qr@6fdf604614
lib_rpl@9a3ce435f4
lib_spellcheck@73dba37d0a Prepend PkgConfig variables with TDESKTOP_ 2025-05-14 11:13:50 +04:00
lib_storage@ccdc72548a
lib_tl@79243fd193 fix: make it build 2025-01-15 11:15:30 +03:00
lib_ui@9523ff72ae fix: make it build 2025-05-19 00:32:36 +03:00
lib_webrtc@e44439ed95 Use C++/WinRT from SDK 2025-04-30 23:43:46 -07:00
lib_webview@b9f9e981c8 Use C++/WinRT from SDK 2025-04-30 23:43:46 -07:00
Resources Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
SourceFiles feat: Implement local messages feature 2025-05-21 22:00:04 +00:00
Telegram
ThirdParty Update tgcalls, don't link libtgvoip any more. 2025-05-01 11:13:21 +04:00
CMakeLists.txt Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
configure.bat
configure.py
configure.sh
create.bat
Telegram.plist chore: macOS adjustments 2024-12-24 20:41:22 +03:00