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
5a015888d4
chore: remove workflows
2025-05-20 17:35:57 +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
Mehran
a2b3fe6411
Add and slightly improve cloud languages
2025-05-16 12:38:04 +04:00
Ilya Fedin
13d4f37726
Use CMAKE_MSVC_DEBUG_INFORMATION_FORMAT in Windows action
2025-05-16 11:36:16 +04: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
Ilya Fedin
5d8ac95d07
Prepend PkgConfig variables with TDESKTOP_
...
To avoid clashes with cache variables set by third party cmake modules
2025-05-14 11:13:50 +04:00
Ilya Fedin
cd0ebb41aa
Use CMAKE_COMPILE_WARNING_AS_ERROR in actions
...
Instead of specifying the compiler flag manually
2025-05-14 10:43:50 +04:00
Ilya Fedin
eb028b0dad
Ensure clangd cache is out of build directory
...
It's annoying to rebuild index after cleaning the build directory
2025-05-13 10:41:42 +04:00
Ilya Fedin
61803f7516
Update submodules
2025-05-13 08:07:02 +04:00
Ilya Fedin
50bfed79be
Update protobuf in snap
2025-05-13 07:48:03 +04:00
Ilya Fedin
1c77ae818e
Update cmake_helpers
2025-05-12 09:41:26 +04:00
Ilya Fedin
66ede6037d
Add t2e2e to snap
2025-05-12 09:41:26 +04:00
Ilya Fedin
01452b7309
Add tde2e to macOS Packaged action
2025-05-12 09:41:26 +04:00
Ilya Fedin
b5f2470b79
td -> tde2e
2025-05-12 09:41:26 +04:00
Ilya Fedin
49403e9fee
Fix COPY order for libraries in Dockerfile
2025-05-12 09:41:26 +04: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
2ba0ebf3e8
Update cmake_helpers submodule.
2025-05-09 10:01:55 +04:00
John Preston
bbcd27d3c2
Fix possible crash in restrictions.
2025-05-09 10:01:55 +04:00
Ilya Fedin
837a3528cd
Fix mozjpeg build with cmake 4
2025-05-08 03:41:54 -07:00
Ilya Fedin
f39662588f
Revert "Cherry-pick mozjpeg cmake 4 compatibility"
...
This reverts commit 9fd1f95ab8
.
2025-05-08 03:41:54 -07:00
Ilya Fedin
4b12f52029
Revert "Set CMAKE_MSVC_RUNTIME_LIBRARY for mozjpeg"
...
This reverts commit ce764c862f
.
2025-05-08 03:41:54 -07:00
Ilya Fedin
f2920ddefb
Use Docker's actions to build Docker image
2025-05-08 02:52:14 -07:00
Ilya Fedin
ce010653d5
Don't create unnecessary subfolder in Linux action
...
It results in a tdesktop/tdesktop/tdesktop path
2025-05-08 02:52:14 -07:00
Ilya Fedin
ce764c862f
Set CMAKE_MSVC_RUNTIME_LIBRARY for mozjpeg
...
The cherry-pick made in 9fd1f95ab8
broke mozjpeg's own WITH_CRT_DLL variable so we have to use the cmake one
2025-05-08 02:38:45 -07:00