mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-09-08 13:03:34 +02:00
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. |
||
---|---|---|
.. | ||
build | ||
cmake | ||
codegen@5a0421e462 | ||
lib_base@b4f913beb8 | ||
lib_crl@c1d6b02736 | ||
lib_lottie@4038a11f63 | ||
lib_qr@6fdf604614 | ||
lib_rpl@9a3ce435f4 | ||
lib_spellcheck@73dba37d0a | ||
lib_storage@ccdc72548a | ||
lib_tl@79243fd193 | ||
lib_ui@9523ff72ae | ||
lib_webrtc@e44439ed95 | ||
lib_webview@b9f9e981c8 | ||
Resources | ||
SourceFiles | ||
Telegram | ||
ThirdParty | ||
CMakeLists.txt | ||
configure.bat | ||
configure.py | ||
configure.sh | ||
create.bat | ||
Telegram.plist |