AyuGramDesktop/Telegram/SourceFiles
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
..
_other chore: update packer for macOS 2024-10-05 02:47:20 +03:00
api Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
ayu feat: Implement local messages feature 2025-05-21 22:00:04 +00:00
boxes feat: Implement local messages feature 2025-05-21 22:00:04 +00:00
calls Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
chat_helpers feat: send with sound in menu 2025-05-05 20:51:41 +03:00
codegen/scheme
core chore: change links 2025-05-20 22:59:22 +03:00
countries Support 'FT' "country" flag emoji. 2025-03-10 11:52:42 +04:00
data fix: make it build 2025-05-19 00:32:36 +03:00
dialogs Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
editor Fix arbitrary aspect in photo editor crop. 2025-02-13 20:20:14 +04:00
export Merge tag 'v5.14.1' into dev 2025-05-02 01:50:47 +03:00
ffmpeg Fix compilation with ffmpeg-4.x 2025-02-24 13:15:37 +04:00
history feat: Implement local messages feature 2025-05-21 22:00:04 +00:00
info Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
inline_bots Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
intro Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
iv Merge tag 'v5.11.1' into dev 2025-02-14 01:51:34 +03:00
lang Merge tag 'v5.10.3' into dev 2025-01-15 10:11:17 +03:00
layout Spread some style entries from basic style. 2023-11-15 04:19:51 +03:00
main Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
media feat: send with sound in menu 2025-05-05 20:51:41 +03:00
menu Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
mtproto Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
overview Fixed some unused-but-set-variable warnings. 2025-05-01 11:13:00 +04:00
passport Update API scheme to layer 201. 2025-03-26 07:11:20 +04:00
payments Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
platform Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
profile Use Ui::Text::String in Ui::RoundButton. 2024-08-31 21:48:52 +04:00
settings feat: restore caption from send files box 2025-05-19 00:59:34 +03:00
statistics Fixed possible crashed on local zoom of charts in stats. 2025-05-07 10:04:26 +03:00
storage Merge tag 'v5.14.1' into dev 2025-05-02 01:50:47 +03:00
support Allow fast bot mode without support mode. 2025-02-12 11:39:26 +04:00
tde2e Fix tde2e include the way tdlib itself uses it 2025-05-05 16:51:48 +03:00
tests Add test_text test app. 2024-08-28 14:58:09 +04:00
ui Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
window Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
apiwrap.cpp Merge tag 'v5.14.3' into dev 2025-05-18 22:30:24 +03:00
apiwrap.h Moved out top promo from api and suggestions from config to single file. 2025-05-06 12:21:06 +03:00
config.h fix: adjust code for refactor of input fields in lib_ui 2023-09-23 14:00:47 +03:00
logs.cpp Added ability to disable debug logs even for debug builds. 2024-11-27 11:27:59 +03:00
logs.h
main.cpp
mainwidget.cpp Show right call top bar after migration. 2025-05-01 11:13:18 +04:00
mainwidget.h Show right call top bar after migration. 2025-05-01 11:13:18 +04:00
mainwindow.cpp Removed include directive for ui_utility from rp_widget header. 2024-08-28 15:15:58 +03:00
mainwindow.h Removed some include directives. 2023-11-28 21:55:26 +04:00
settings.cpp feat: enter with ghost mode from taskbar or command line 2024-07-01 06:04:14 +03:00
settings.h feat: enter with ghost mode from taskbar or command line 2024-07-01 06:04:14 +03:00
stdafx.h Added rpl filter to exclude incomplete sizes. 2025-02-10 10:49:53 +04:00
tray.cpp chore: refactor settings 2025-05-05 20:36:16 +03:00
tray.h