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
3c7f3e8740
chore: change links
2025-05-20 22:59:22 +03:00
AlexeyZavar
3a9899529a
fix: reordering crashes
2025-05-20 22:56:30 +03:00
AlexeyZavar
be378eaacb
feat: simple files reordering in send box
2025-05-19 15:44:02 +03:00
AlexeyZavar
631f5a1043
feat: restore caption from send files box
2025-05-19 00:59:34 +03:00
AlexeyZavar
353e9adec1
fix: make it build
2025-05-19 00:32:36 +03:00
AlexeyZavar
e572da4927
Merge tag 'v5.14.3' into dev
2025-05-18 22:30:24 +03:00
John Preston
d22afa36c3
Version 5.14.3.
...
- Fix stale birthday suggestions removing.
- Fix notification click opening a new window.
2025-05-18 20:32:39 +04:00
John Preston
a7296f15ac
Suggest to reset gifts filter.
2025-05-18 20:32:39 +04:00
John Preston
b20caee548
Check if the resale gift price changed.
2025-05-18 14:12:18 +04:00
John Preston
519832edd7
Show warnings for dangerous business bot rights.
2025-05-18 14:12:17 +04:00
John Preston
a2cea1e5bc
More robust business bot editing.
2025-05-18 14:12:16 +04:00
John Preston
b3c198f0d2
Improve layout of media albums with likes.
2025-05-18 14:12:15 +04:00
23rd
b45a696b5d
Fixed build of macOS on Github CI.
2025-05-17 09:22:12 +03:00
23rd
71f34f4e31
Added ability to jump from code to phone input in intro with Space.
2025-05-15 18:19:49 +03:00
23rd
018f147de6
Slightly improved position of code input in intro step.
2025-05-15 17:58:14 +03:00
23rd
da012cbf8b
Added lottie emoji to box for validate phone number in settings.
2025-05-15 17:58:14 +03:00
John Preston
3907a103fc
Fix possible notification click problem.
...
Fixes #29293 .
2025-05-15 15:34:23 +04:00
John Preston
efb566bcc7
Don't show resale gifts as "sold out".
2025-05-15 14:50:27 +04:00
John Preston
53e8df3542
Sort resale gifts by Price by default.
2025-05-15 14:50:22 +04:00
23rd
a00d262773
Added support of suggestion to validate phone number to settings.
2025-05-15 13:22:54 +03:00
23rd
b64db54793
Fixed possible incorrect display of low credits balance in top bar.
2025-05-15 10:09:24 +03:00
23rd
97c0e3d4a9
Added support of custom emoji to top bar suggestion.
2025-05-15 10:09:01 +03:00
23rd
ba31bbace8
Added refresh of top bar suggestion on day changed for birthdays.
2025-05-15 10:08:44 +03:00
23rd
606dfd29d3
Moved out data of contact birthdays to promo suggestions class.
2025-05-15 10:08:22 +03:00
23rd
9411d0781b
Removed birthday suggestions for self, blocked and deleted accounts.
2025-05-15 09:22:22 +03:00
23rd
7aea200860
Fixed padding reset in top bar suggestion on suggestion changed.
2025-05-15 09:21:54 +03:00
John Preston
66d512f26f
Version 5.14.2.
...
- Buy Rare Gifts in the Marketplace.
- Sell Your Gifts for Stars.
- Set Your Channel to Auto-Translate.
2025-05-09 10:01:55 +04:00
John Preston
bbcd27d3c2
Fix possible crash in restrictions.
2025-05-09 10:01:55 +04:00
John Preston
ec45041a66
Fix empty query migrated group search.
2025-05-08 10:53:23 +04:00
Ilya Fedin
67a666b282
Return accidentally removed video formats
2025-05-07 23:19:39 -07:00
23rd
bcd899c641
Slightly improved phrases to admin log for channels.
2025-05-07 22:35:30 +03:00
John Preston
ec61ac29ea
Fix forum showing when group not opened.
2025-05-07 22:17:49 +04:00
John Preston
180e663a43
Implement nice confcall bar text.
2025-05-07 22:10:44 +04:00
John Preston
ae1711a685
Use translated phrase for collectible upgrade.
2025-05-07 21:05:33 +04:00
John Preston
9c3b62574d
Change some hard-coded phrases.
2025-05-07 20:35:01 +04:00
John Preston
a3637c12d6
Fix first message date with new peer info.
2025-05-07 18:53:21 +04:00
John Preston
cae192682b
Improve notification Ctrl+Click to open a new window.
...
Fixes #29144 .
2025-05-07 18:52:52 +04:00
23rd
6c68bacaef
Added ability to open chat in window from Ctrl+click on notifications.
2025-05-07 18:09:34 +04:00
John Preston
ee7a2b564b
Show "Join" button for pinned call links.
2025-05-07 18:03:59 +04:00
John Preston
fb25d90b48
Hide weird unread badge in new-window forum.
2025-05-07 18:03:46 +04:00
John Preston
9075a521f0
Correctly show global search with in-chat.
2025-05-07 18:03:18 +04:00
John Preston
00a0e595ff
Don't add global posts search preview for in-chat start.
2025-05-07 17:12:00 +04:00
John Preston
694ff32b01
Always search hashtags in current chat.
2025-05-07 16:56:55 +04:00
John Preston
a74635ff56
Fix: Hide 'My gifts' tab when gifting to self
2025-05-07 16:52:57 +04:00
John Preston
8c6f3d66b5
Don't mask gift numbers in service notifications.
2025-05-07 16:44:41 +04:00
John Preston
a49cb06d77
Fix unread count update in folder strip.
2025-05-07 16:39:42 +04:00
John Preston
f96f478470
Rename linked-chat to discussion-link.
2025-05-07 14:58:47 +04:00