evgeny
b5e4a0aafa
feature: media auto-download + manual download + UI download state indication (Android + desktop)
C-layer:
- chat_event.h: CHAT_EVT_ATTACHMENT_DOWNLOADED (14)
- chat_msg.c: fixed md_auto_download (non-NULL done_cb, correct media_base from db_path, use chat_setting for autoload checks)
- chat_msg.c: added chat_core_attachment_download + trampoline for manual download
- chat_core.h: exported attachment_dl_req + trampoline
Android (Kotlin + JNI):
- Message: downloadState field (parse from localAttrs)
- ChatRepository: parse localAttrs for download state
- NativeLib: attachmentDownload() JNI
- MessageBubble: FileBubble with download status icon + tap-to-download
- ChatViewModel: downloadAttachment() + CHAT_EVT_ATTACHMENT_DOWNLOADED handler
- ChatScreen: wire onDownloadFile handler
- android_jni_bridge: utun_bridge_attachment_download + JNI + localAttrs in JSON
Desktop (Qt/C++):
- messagedelegate.h: MsgFileDownloadStateRole, MsgChannelIdRole
- messagelist.cpp: parse localAttrs for file download state
- messagedelegate.cpp: FileBubble with download icon/text + click handler via chat_core_attachment_download_trampoline
- gui_bridge.h: GUI_EVT_ATTACHMENT_DOWNLOADED (14) + callback typedef
- gui_bridge_impl.cpp: event dispatch + setter
- mainwindow.cpp: callback registration -> refresh message list
2026-07-30 00:01:38 +03:00
..
2026-07-22 09:08:19 +03:00
2026-07-29 19:29:56 +03:00
2026-07-29 14:15:10 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-27 17:09:31 +03:00
2026-07-22 17:33:58 +03:00
2026-07-27 17:09:31 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-22 15:51:03 +03:00
2026-07-22 15:51:03 +03:00
2026-07-22 15:51:03 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-16 19:04:00 +03:00
2026-07-29 14:15:10 +03:00
2026-07-29 17:53:46 +03:00
2026-07-30 00:01:38 +03:00
2026-07-29 18:31:18 +03:00
2026-07-30 00:01:38 +03:00
2026-07-29 14:15:10 +03:00
2026-07-14 09:07:03 +03:00
2026-07-26 18:20:10 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-22 15:51:03 +03:00
2026-07-22 08:47:56 +03:00
2026-07-26 20:34:38 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-09 18:08:49 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-21 20:25:41 +03:00
2026-07-29 11:10:55 +03:00
2026-07-22 09:08:19 +03:00