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
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
b3c198f0d2
Improve layout of media albums with likes.
2025-05-18 14:12:15 +04:00
John Preston
bbcd27d3c2
Fix possible crash in restrictions.
2025-05-09 10:01:55 +04:00
23rd
bcd899c641
Slightly improved phrases to admin log for channels.
2025-05-07 22:35:30 +03:00
John Preston
a3637c12d6
Fix first message date with new peer info.
2025-05-07 18:53:21 +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
694ff32b01
Always search hashtags in current chat.
2025-05-07 16:56:55 +04:00
John Preston
8c6f3d66b5
Don't mask gift numbers in service notifications.
2025-05-07 16:44:41 +04:00
John Preston
f96f478470
Rename linked-chat to discussion-link.
2025-05-07 14:58:47 +04:00
23rd
8f409a8fe2
Fixed swipe-back on strip of similar channels.
2025-05-07 10:04:26 +03:00
AlexeyZavar
12b16577ef
feat: send with sound in menu
2025-05-05 20:51:41 +03:00
AlexeyZavar
409165dec6
chore: refactor settings
2025-05-05 20:36:16 +03:00
AlexeyZavar
70c3bb3288
fix: allow deleting deleted messages
2025-05-05 19:06:58 +03:00
John Preston
00e6da9d64
Fix build with Xcode.
2025-05-05 11:43:51 +04:00
John Preston
68b3d75705
Track and show "too early" gift transfer/resell.
2025-05-05 11:43:51 +04:00
John Preston
10e4c59f2e
Correct implementation of auto-translation.
2025-05-05 11:43:51 +04:00
John Preston
9583007769
Apply auto-translation from French? for test.
2025-05-05 11:43:50 +04:00
John Preston
8d734f5cc4
Update API scheme on layer 203.
2025-05-05 11:43:50 +04:00
John Preston
3375ff6152
Use correct phrases for the resold gifts.
2025-05-05 11:43:50 +04:00
AlexeyZavar
939c9afeb4
Merge tag 'v5.14.1' into dev
2025-05-02 01:50:47 +03:00
23rd
0fe9dad515
Added initial api support of bank card entity in messages.
2025-05-01 13:51:16 +03:00
John Preston
810f7949f4
Fix crash in marking message contents read.
2025-05-01 11:13:22 +04:00
John Preston
29d87f692a
Add carousel animation for emoji fingerprint.
2025-05-01 11:13:20 +04:00
John Preston
b036bedbc3
Support distinct calling/invited states.
2025-05-01 11:13:18 +04:00
John Preston
09229812f4
Show nice confcall invites.
2025-05-01 11:13:17 +04:00
John Preston
021115b463
Nice join confcall confirm box.
2025-05-01 11:13:17 +04:00
John Preston
01a6b432f3
Improve some confcall graphics.
2025-05-01 11:13:16 +04:00
John Preston
a3ba99c682
Implement incoming confcall window.
2025-05-01 11:13:16 +04:00
John Preston
7c709fddba
Allow editing confcall messages.
2025-05-01 11:13:16 +04:00
John Preston
41c0a5ee3b
Add "Join Call" button to confcall link previews.
2025-05-01 11:13:16 +04:00
John Preston
346f7aadd6
Render confcall messages as phone calls.
2025-05-01 11:13:16 +04:00
John Preston
4eaf03b922
Update API scheme on layer 202.
2025-05-01 11:13:15 +04:00
John Preston
4401ea388c
PoC confcall invite, emoji.
2025-05-01 11:13:15 +04:00
John Preston
214cc83d4a
Update API scheme to layer 202.
2025-05-01 11:13:15 +04:00
23rd
9ad1d1c25d
Fixed some unused-but-set-variable warnings.
2025-05-01 11:13:00 +04:00
AlexeyZavar
1447b62999
Merge tag 'v5.13.1' into dev
2025-04-25 02:29:09 +03:00
John Preston
44d9525476
Update send gift icon visibility.
2025-03-26 07:13:16 +04:00
John Preston
7312e34f46
Update icons for gifts privacy.
2025-03-26 07:13:15 +04:00
John Preston
f51320d1bc
Add some more frozen restrictions.
2025-03-26 07:13:15 +04:00
John Preston
a0764190f2
Support sponsored peers in search results.
2025-03-26 07:13:15 +04:00
John Preston
7d0a73a6b0
Show gift button in the message field.
2025-03-26 07:13:15 +04:00
John Preston
fbab3964e6
Handle some frozen cases.
2025-03-26 07:11:20 +04:00
John Preston
d9b270b477
Initial frozen accounts support.
2025-03-26 07:11:20 +04:00