Commit graph

11 commits

Author SHA1 Message Date
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
AlexeyZavar
b6e25a353d feat: speed-up ayudata queries 2025-04-25 00:42:53 +03:00
AlexeyZavar
a4a3b4e9d1 chore: update copyright 2025-01-16 13:08:58 +03:00
AlexeyZavar
157b25ea43 chore: refactor languages 2024-09-25 19:05:57 +03:00
AlexeyZavar
3d91d2c80a chore: refactor a bit 2024-09-23 16:46:41 +03:00
AlexeyZavar
625f9ef816 feat: store text deleted messages in db 2024-09-23 02:01:41 +03:00
AlexeyZavar
d8192898c4 feat: MacOS support 2024-08-18 01:18:30 +03:00
AlexeyZavar
0e26b39faf fix: possible crash 2024-03-13 16:34:39 +03:00
ZavaruKitsu
5bb633d982 fix: crashes & infinite loop 2024-02-09 20:00:14 +03:00
ZavaruKitsu
a96f8d8ac3 chore: update copyright
fix: don't display date for big emoji
2024-02-04 21:19:42 +03:00
ZavaruKitsu
d4a22a5110 chore: sync database schema & refactor & reformat 2024-02-04 20:41:21 +03:00