Commit graph

219 commits

Author SHA1 Message Date
Cursor Agent
00840d76e1 Add local message editor and manager for custom messages
Co-authored-by: g6582566 <g6582566@morris.umn.edu>
2025-07-23 23:08:34 +00:00
Cursor Agent
683aef44f9 Add local message feature to context menu with settings option
Co-authored-by: g6582566 <g6582566@morris.umn.edu>
2025-07-23 22:55:01 +00:00
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
353e9adec1 fix: make it build 2025-05-19 00:32:36 +03:00
AlexeyZavar
409165dec6 chore: refactor settings 2025-05-05 20:36:16 +03:00
AlexeyZavar
4870d59a43 fix: check if a message is modified 2025-05-05 19:35:09 +03:00
AlexeyZavar
518ae8044d chore: update strings & move option 2025-04-25 01:18:24 +03:00
Grigory
314a90995a
feat: add option to show only added emojis & stickers 2025-04-25 00:54:29 +03:00
AlexeyZavar
b6e25a353d feat: speed-up ayudata queries 2025-04-25 00:42:53 +03:00
AlexeyZavar
9502120ee3 chore: update sqlite_orm 2025-03-13 13:26:43 +03:00
AlexeyZavar
7f1a3320dd chore: update sqlite3 2025-03-13 13:23:40 +03:00
AlexeyZavar
66d54ccd54 feat: open channel in discussion group 2025-03-09 02:59:45 +03:00
AlexeyZavar
ccf8d91f01 feat: burn ttl message & display expired status 2025-03-09 02:33:22 +03:00
AlexeyZavar
9ca0c3c41d fix: more checks for disposal 2025-03-09 00:30:18 +03:00
AlexeyZavar
7dda5461ad chore: enable replaceBottomInfoWithIcons by default 2025-02-14 03:14:17 +03:00
AlexeyZavar
4327fd4c58 fix: reduce CPU usage for TTL messages & refactor 2025-02-05 22:49:33 +03:00
AlexeyZavar
53392d6e5d feat: bypass client-side restrictions & minor adjustments 2025-02-04 16:20:37 +03:00
AlexeyZavar
292de83c35 fix: messageshot on macOS
Co-authored-by: Vladislav Gorodkov <fuccsoc@gmail.com>
2025-01-31 03:07:17 +03:00
AlexeyZavar
e3ebb30518 chore: remove β from option 2025-01-31 00:27:19 +03:00
AlexeyZavar
51122ab3ba feat: show badges in dialogs list 2025-01-30 23:04:03 +03:00
AlexeyZavar
5d96eab7b4 fix: badges 2025-01-30 20:29:29 +03:00
AlexeyZavar
d4ca58574a feat: extera icon 2025-01-17 19:20:46 +03:00
AlexeyZavar
e796011deb feat: show toast 2025-01-17 18:56:20 +03:00
AlexeyZavar
ddf74e5f78 fix: don't crash if smth wrong when fetching devs and channels 2025-01-16 17:43:15 +03:00
AlexeyZavar
7dfc27f3c9 fix: paddings & mark as β 2025-01-16 17:43:15 +03:00
AlexeyZavar
62c4b1f30b fix: process more shortcuts 2025-01-16 16:40:43 +03:00
AlexeyZavar
07f1f9c1d8 chore: update sqlite3 2025-01-16 13:18:11 +03:00
AlexeyZavar
a4a3b4e9d1 chore: update copyright 2025-01-16 13:08:58 +03:00
AlexeyZavar
576822b1ff feat: fetch devs and supporters 2025-01-16 13:06:26 +03:00
AlexeyZavar
ab26e3d4fa feat: replace "edited" & "deleted" with icons 2025-01-15 15:49:21 +03:00
AlexeyZavar
4926735ae1 fix: copy ID from main settings 2025-01-15 13:14:43 +03:00
AlexeyZavar
2804cc2d1e feat: improve stickerpack author
Co-authored-by: kotecat <davidshaldunov@gmail.com>
2025-01-15 11:51:45 +03:00
AlexeyZavar
38b5cab006 feat: new badges 2025-01-15 11:16:32 +03:00
AlexeyZavar
96c10be293 fix: make it build 2025-01-15 11:15:30 +03:00
AlexeyZavar
d6ba3ae332 feat: wide messages 2024-11-23 12:34:26 +03:00
AlexeyZavar
d6145f383d fix: smth 2024-11-23 08:54:20 +03:00
AlexeyZavar
e02a8a7fdb fix: make it build 2024-11-20 16:49:11 +03:00
AlexeyZavar
7631722e99 fix: crashes 2024-11-20 16:07:27 +03:00
AlexeyZavar
4e0ffc1e28 fix: build for macOS 2024-10-22 03:45:31 +03:00
AlexeyZavar
27f4f73690 fix: make it build 2024-10-16 16:23:07 +03:00
AlexeyZavar
45461836e1 fix: don't use scheduled messages if not in a full ghost mode 2024-10-05 03:14:24 +03:00
AlexeyZavar
e778aab8b7 fix: read media 2024-09-27 22:04:04 +03:00
AlexeyZavar
b073810bab feat: ability to disable save deleted messages in bot dialogs 2024-09-27 20:36:34 +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
392f2e633c feat: message field configuration 2024-09-12 16:10:03 +03:00
AlexeyZavar
66b7a48352 feat: send without sound 2024-09-11 22:41:03 +03:00
AlexeyZavar
6da6817037 fix: channel messages 2024-09-11 21:44:10 +03:00
AlexeyZavar
11b3880f8e fix: set device pixel ratio 2024-09-11 21:32:53 +03:00