AyuGramDesktop/Telegram/SourceFiles/boxes
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
..
filters Simplify marked text context logic. 2025-03-07 19:03:40 +04:00
peers Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
about_box.cpp chore: change links 2025-05-20 22:59:22 +03:00
about_box.h fix: forum link 2025-02-14 04:45:09 +03:00
about_sponsored_box.cpp Replace various QDesktopService::openUrl with File::OpenUrl for correct operation on Linux 2022-12-23 14:02:25 +04:00
about_sponsored_box.h Added initial implementation of translate box. 2022-11-22 00:26:49 +00:00
abstract_box.cpp Initial support of separate windows for accounts. 2023-01-19 09:45:28 +04:00
abstract_box.h Remove namespace App. 2022-11-30 17:28:09 +04:00
add_contact_box.cpp Slightly improved some phrases on error while add participant to chat. 2024-12-18 11:03:44 +03:00
add_contact_box.h Support complex invite-users responses. 2024-04-01 22:44:26 +04:00
add_local_message_box.cpp feat: Implement local messages feature 2025-05-21 22:00:04 +00:00
add_local_message_box.h feat: Implement local messages feature 2025-05-21 22:00:04 +00:00
auto_download_box.cpp Added references to structured bindings since Apple clang supports them. 2024-01-16 11:18:55 +04:00
auto_download_box.h Slightly optimized include directives in some headers. 2023-11-15 04:20:20 +03:00
auto_lock_box.cpp Add rpl interface to RadiobuttonGroup. 2024-03-08 10:53:58 +04:00
auto_lock_box.h Slightly optimized include directives in some headers. 2023-11-15 04:20:20 +03:00
background_box.cpp Removed cIntRetinaFactor and cRetinaFactor. 2024-03-24 07:10:07 +03:00
background_box.h Allow setting channel wallpaper. 2023-12-22 07:35:02 -04:00
background_preview_box.cpp Don't suggest userpics to paid-restricted. 2025-03-07 19:03:38 +04:00
background_preview_box.h Add a couple of phrases for group wallpapers. 2024-02-16 12:22:38 +04:00
boxes.style Merge tag 'v5.14.1' into dev 2025-05-02 01:50:47 +03:00
choose_filter_box.cpp Fixed creation of new filter with selected dialog from menu. 2025-05-07 11:47:00 +03:00
choose_filter_box.h Added warning of limitation on excluding chats from filter from menu. 2023-08-14 22:30:37 +02:00
connection_box.cpp Removed include directive for ui_utility from rp_widget header. 2024-08-28 15:15:58 +03:00
connection_box.h Fixed display of confirmation box for proxy links in correspond window. 2024-06-01 16:02:59 +03:00
create_poll_box.cpp Simplify paid message button labeling. 2025-03-07 19:03:38 +04:00
create_poll_box.h Star-count button in multi-Forward/CreatePoll. 2025-03-07 19:03:38 +04:00
delete_messages_box.cpp Remove 'delete also for' in Deleted Accounts. 2025-03-14 16:40:44 +04:00
delete_messages_box.h Added ability to remember last choice in delete messages box. 2022-12-26 14:24:05 +04:00
dictionaries_manager.cpp Slightly optimized includes in application.h. 2022-06-12 16:07:41 +03:00
dictionaries_manager.h Slightly optimized include directives in some headers. 2023-11-15 04:20:20 +03:00
download_path_box.cpp Fix default export directory in flatpak 2024-08-13 08:45:55 +04:00
download_path_box.h Moved tmp string for temporary folder to single place. 2022-11-30 17:17:16 +03:00
edit_caption_box.cpp Allow sending videos with covers. 2025-02-12 17:24:24 +04:00
edit_caption_box.h Add FieldAutocomplete to EditCaptionBox. 2024-09-19 10:34:01 +04:00
edit_privacy_box.cpp Label 'Add users' for Remove Fee. 2025-03-14 16:40:50 +04:00
edit_privacy_box.h Track stars-per-message for users and channels. 2025-03-07 19:03:37 +04:00
gift_credits_box.cpp Simplify marked text context logic. 2025-03-07 19:03:40 +04:00
gift_credits_box.h Return gift_credits_box with gifting stars. 2024-10-04 10:06:21 +04:00
gift_premium_box.cpp Track and show "too early" gift transfer/resell. 2025-05-05 11:43:51 +04:00
gift_premium_box.h Improve channel gifts viewing. 2025-01-22 22:13:29 +04:00
language_box.cpp Removed include directive for ui_utility from rp_widget header. 2024-08-28 15:15:58 +03:00
language_box.h Removed some unwanted include directives of lang_keys in header files. 2023-11-15 03:30:04 +03:00
local_storage_box.cpp Removed Ui::show from LocalStorageBox. 2024-12-03 17:26:46 +04:00
local_storage_box.h Removed Ui::show from LocalStorageBox. 2024-12-03 17:26:46 +04:00
max_invite_box.cpp Moved bunch of arguments for creation of invite links to structure. 2024-08-14 18:17:50 +02:00
max_invite_box.h Slightly optimized include directives in some headers. 2023-11-15 04:20:20 +03:00
moderate_messages_box.cpp Rename linked-chat to discussion-link. 2025-05-07 14:58:47 +04:00
moderate_messages_box.h Replaced box for leaving or deleting chat with generic box. 2024-04-28 20:14:26 +03:00
passcode_box.cpp Simplify marked text context logic. 2025-03-07 19:03:40 +04:00
passcode_box.h Added spoiler entity to email pattern in recover box. 2025-01-08 14:25:40 +03:00
peer_list_box.cpp Merge tag 'v5.14.1' into dev 2025-05-02 01:50:47 +03:00
peer_list_box.h Suggest invite to empty/discarded joining call. 2025-05-01 11:13:20 +04:00
peer_list_controllers.cpp Improve paid peer-box multi-send. 2025-03-07 19:03:38 +04:00
peer_list_controllers.h Improve paid peer-box multi-send. 2025-03-07 19:03:38 +04:00
peer_list_widgets.cpp Fix build for Windows. 2024-11-23 08:59:53 +04:00
peer_list_widgets.h Added initial very limited implementation of peer list with widgets. 2024-11-21 16:45:00 +04:00
peer_lists_box.cpp Removed include directive for ui_utility from rp_widget header. 2024-08-28 15:15:58 +03:00
peer_lists_box.h Removed redundant peerListShowBox / peerListHideLayer from delegates. 2023-11-09 16:02:18 +03:00
phone_banned_box.cpp Replaced Ui::InformBox and Ui::ConfirmBox with GenericBox. 2022-02-28 09:08:01 +03:00
phone_banned_box.h Moved ShowPhoneBannedError to separated file. 2021-10-19 06:34:27 +03:00
pin_messages_box.cpp fix: pin without sound by default 2023-11-01 15:07:16 +03:00
pin_messages_box.h Show pin confirmation correctly in topics. 2023-04-21 15:09:06 +04:00
premium_limits_box.cpp Improve paid reactions box design. 2024-08-14 18:17:49 +02:00
premium_limits_box.h Support pinned saved sublists. 2023-12-31 19:42:24 +04:00
premium_preview_box.cpp Added missed label about similar channels to box for doubled limits. 2025-02-10 22:38:42 +03:00
premium_preview_box.h Added ability to disable chats filters tags from settings. 2024-11-27 11:27:59 +03:00
reactions_settings_box.cpp Use nice fake message for effect preview. 2024-05-30 21:35:05 +04:00
reactions_settings_box.h Implement improved allowed reactions editing. 2022-09-02 21:14:32 +04:00
report_messages_box.cpp Fix build on VS 17.12 Preview 4 on ARM. 2024-11-06 12:26:12 +04:00
report_messages_box.h Added api support for stories reports with server options. 2024-10-05 18:49:21 +03:00
ringtones_box.cpp Reimplement file open confirmations. 2024-04-15 12:07:27 +04:00
ringtones_box.h Update API scheme on layer 148: Notifications. 2022-11-01 19:25:37 +04:00
self_destruction_box.cpp Added ability to instantly delete account in test DC. 2025-01-07 23:12:49 +03:00
self_destruction_box.h Slightly optimized include directives in some headers. 2023-11-15 04:20:20 +03:00
send_credits_box.cpp Simplify marked text context logic. 2025-03-07 19:03:40 +04:00
send_credits_box.h Simplify marked text context logic. 2025-03-07 19:03:40 +04:00
send_files_box.cpp fix: reordering crashes 2025-05-20 22:56:30 +03:00
send_files_box.h feat: simple files reordering in send box 2025-05-19 15:44:02 +03:00
send_gif_with_caption_box.cpp Add mention/hashtag autocomplete to GIF caption. 2024-09-30 14:46:18 +04:00
send_gif_with_caption_box.h Add mention/hashtag autocomplete to GIF caption. 2024-09-30 14:46:18 +04:00
share_box.cpp chore: refactor settings 2025-05-05 20:36:16 +03:00
share_box.h Star-count button in SendFilesBox/ShareBox. 2025-03-07 19:03:38 +04:00
star_gift_box.cpp Check if the resale gift price changed. 2025-05-18 14:12:18 +04:00
star_gift_box.h Check if the resale gift price changed. 2025-05-18 14:12:18 +04:00
sticker_set_box.cpp Merge tag 'v5.14.1' into dev 2025-05-02 01:50:47 +03:00
sticker_set_box.h Show 'hidden from profile' icon in my gifts. 2024-10-04 10:06:20 +04:00
stickers_box.cpp Added initial implementation of right button for bots in dialogs list. 2024-11-27 11:27:59 +03:00
stickers_box.h Allow editing group wallpaper / status / emoji set. 2024-02-15 13:51:40 +04:00
transfer_gift_box.cpp Check if the resale gift price changed. 2025-05-18 14:12:18 +04:00
transfer_gift_box.h Track and show "too early" gift transfer/resell. 2025-05-05 11:43:51 +04:00
translate_box.cpp Simplify marked text context logic. 2025-03-07 19:03:40 +04:00
translate_box.h Don't offer translate from / to the same language. 2023-02-07 16:38:16 +04:00
url_auth_box.cpp Fixed some unused-but-set-variable warnings. 2025-05-01 11:13:00 +04:00
url_auth_box.h Slightly optimized include directives in some headers. 2023-11-15 04:20:20 +03:00
username_box.cpp Added external link to username field when it is available for purchase. 2024-02-01 12:37:33 +04:00
username_box.h Added external link to username field when it is available for purchase. 2024-02-01 12:37:33 +04:00