Commit Graph
71 Commits
Author SHA1 Message Date
evgeny c4b4230bbc Own and bind desktop radio call commands inside the bridge 2026-10-28 00:59:00 +01:00
evgeny cf766a55b5 Own desktop call commands and bind them atomically to the core 2026-10-28 00:58:59 +01:00
evgeny ae30145b27 Allow cancellation of an empty file operation as a no-op 2026-10-28 00:58:59 +01:00
evgeny d6f0a41784 Own desktop file commands and report cancellation through Qt 2026-10-28 00:58:59 +01:00
evgeny 49bc0aa730 Report cancelled composer submissions before releasing their owned requests 2026-10-28 00:58:59 +01:00
evgeny c4821a3570 Document cancellation acknowledgments for member edit commands 2026-10-28 00:58:59 +01:00
evgeny 54ef552f45 Bind owned admin transfer requests to the selected database 2026-10-28 00:58:59 +01:00
evgeny 6ef7a99cd1 Return correlated member save and cancellation results to live GUI contexts 2026-10-28 00:58:59 +01:00
evgeny aec4d5a6d6 Centralize owned settings and name requests in the GUI bridge 2026-10-27 17:27:04 +01:00
evgeny e9676e861e Own and cancel desktop bridge commands before core teardown 2026-10-27 02:25:05 +01:00
evgeny f112f0004c Reserve desktop edit dispatch and reject malformed update events 2026-10-26 22:49:45 +01:00
evgeny df2d250e70 Deliver committed edits to desktop without message notifications 2026-10-26 22:38:17 +01:00
evgeny 7a204d21fa Bridge desktop DM deletion requests and results 2026-10-26 22:11:39 +01:00
evgeny bf799e563b Add local channel deletion to desktop channel settings 2026-10-26 10:47:39 +01:00
evgeny edab625966 Make chat joins atomic and test invitation lifecycle failures 2026-10-26 09:19:35 +01:00
evgeny ea73fa271c Use channel member snapshots for desktop participant details 2026-10-25 20:04:59 +01:00
evgeny 77af45649c Expose phone busy event to desktop call interface 2026-10-19 14:54:01 +02:00
evgeny a5671e2c42 Deliver radio invitation events to desktop UI 2026-10-19 13:57:29 +02:00
evgeny ddce71e950 Clean desktop stream lifecycle and event bridge logging 2026-10-18 15:09:24 +02:00
evgeny 1643817498 Add local UDP discovery and invitation delivery for chat clients 2026-10-18 14:46:04 +02:00
evgeny 4bc70e62ea Deliver attachment key state changes to desktop UI 2026-10-18 02:15:25 +02:00
evgeny 7ecfdd5385 Connect desktop stream bridge to core lifecycle and events 2026-10-12 22:09:39 +02:00
evgeny 71d19013c0 Measure uasync CPU load and display it in desktop and Android GUIs
Sample thread CPU usage without waking idle loops, expose a one-second moving average, and refresh compact GUI indicators at 3 Hz while visible on Android. Add load and bridge regression coverage, streaming notes, and task list cleanup.
2026-10-10 12:31:13 +02:00
evgeny 3898f635df Deliver channel submission acknowledgements to the desktop composer 2026-10-08 00:24:35 +02:00
evgeny 065433acbd Notify about live incoming channel and direct messages 2026-10-07 15:54:25 +02:00
evgeny 0534448ab2 Fix desktop uasync readiness for radio member mute requests 2026-10-07 13:49:06 +02:00
evgeny 6dfb522522 Add local per-member radio mute controls on desktop and Android 2026-10-07 13:35:25 +02:00
evgeny 188ce92cd3 Route feedback state and command results to the desktop thread 2026-10-06 21:34:38 +02:00
evgeny 62ffe0f3d1 Deliver group avatar publication results through the GUI bridge 2026-10-06 13:44:49 +02:00
evgeny d7a7bfe3a9 Route avatar events alongside file browser events in ChatGUI 2026-10-06 12:32:02 +02:00
evgeny 86c23f4a62 Trace file bridge callbacks and use scoped VAD test logs 2026-10-05 21:34:39 +02:00
evgeny 2ead269c7e Clear legacy GUI bridge and list messages from debug 2026-10-05 21:28:45 +02:00
evgeny c8c5d80684 Add asynchronous member file storage and desktop browser 2026-10-05 18:44:58 +02:00
evgeny e61aaf060e Dispatch PM invitation results to desktop UI 2026-10-04 14:53:58 +02:00
evgeny 09756159b2 Add Android boot startup, lazy settings, emoji and DM calls
Add battery optimization controls and configurable boot startup. Keep message sounds in the application and render general settings lazily to avoid ANRs. Add animated emoji controls and live BGP availability for direct-message calls on Android and desktop.
2026-10-02 17:18:24 +03:00
evgeny 48a8e619fb Connect Qt preparation notifications to the conversation view 2026-10-01 18:39:31 +03:00
evgeny 8bb3af6b82 Forward pinned attachment preparation events to Qt 2026-10-01 18:37:49 +03:00
evgeny fb0e0c0404 conn_mgr: race connection probes and report call path with correct RTT 2026-10-01 00:42:47 +03:00
evgeny b6af21fc01 Improve call buffering, CM handle lifecycle and radio PTT controls 2026-09-30 17:31:53 +03:00
evgeny 10562224d7 Fix ETCP session recovery and router lifecycle; confirm chat invites before publishing 2026-09-27 02:51:47 +03:00
evgeny 1610ad9aa6 call: две фазы исходящего вызова — индикация + разные гудки (desktop/Android) 2026-09-23 19:16:53 +03:00
evgeny 2ac04de295 radio: PTT-радио в каналах (src/radio + chatgui + chatgui-android)
Новый модуль src/radio (radio/radio_audio/radio_headless) — push-to-talk
радио поверх topo-групп, доставка аудио в канал, headless-режим и тесты.
Интеграция в chatgui (ptt_hotkey_manager, radio_audio_engine, радионастройки,
вызовы) и chatgui-android (RadioAudioEngine, RadioOverlayService, UI).
2026-09-19 17:09:00 +03:00
evgeny c3faa7ed2c call: единый голосовой стек (libutun_voice) + SoundTouch на Android
- voice_jitter (кодированные Opus-кадры + decode-on-pull + SoundTouch time-stretch)
  вместо PCM-буфера audio_jitter; излишек держится до декодирования
- call_audio.c/.h — единая реализация для desktop/Android/headless (C-интерфейс)
- libutun_voice (voice_sources.cmake): SoundTouch + voice_jitter + call_audio + call_tones
- Android: pull-модель (nativeCallAudioPull), убран Kotlin FIFO, ANDROID_STL=c++_static
- headless audio-сокет: PCM-протокол (decode-only, без тактирования), daemon остаётся C-only
- CALL_STATS расширен dropped/underruns; удалены audio_jitter.cpp и libutun_lite/call_audio.c
- тест test_voice_jitter (ёмкость/догон/стационар), test_call_headless переведён на PCM
2026-09-16 20:26:55 +03:00
evgeny efa82bacf3 call: P2P аудиозвонки — сигналинг, релей медиа, аудио-контур, headless/desktop/android
- src/call/: сигналинг (call.c, call_proto.h, ETCP_RT_ID_CALL 0x36) + релей медиа
  + headless аудио-сокет (call_headless.c, call_audio_bind) + Opus/jitter/тоны
- chat: события CHAT_EVT_CALL_* (34–40), CHAT_EVT_DM_MESSAGES (41), DM-трамплины
- chatgui: call window, miniaudio I/O, audio_frame_ring, test_audio_jitter
- chatgui-android: CallScreen/IncomingCallDialog, аудио-роутинг, JNI, рингтон
- tests: test_call, test_call_headless
2026-09-16 10:17:57 +03:00
evgeny ef513f9361 dm: прямой обмен сообщениями (DM) + soundtouch + архитектура звонков
- src/dm/: dm_core/dm_crypto/dm_mailbox — прямой обмен сообщениями (DM)
- lib/soundtouch-master/: vendored SoundTouch (изменение темпа/высоты аудио)
- doc/dm_arch.md, doc/chat_call_arch.md: архитектура DM и звонков
- tests: test_dm.c, test_dm_e2e.c
- chat: рефакторинг chat_* модулей, member_sync, invite_build
- chatgui/chatgui-android: синхронизация с новым API чата
- lib/u_async, debug_config, utun_instance: сопутствующие изменения
2026-09-15 21:09:17 +03:00
evgeny e1304114f9 chat: invite-ссылки с выбором достижимого узла + tcp_io фикс half-close FIN
- Общий модуль invite_build: сборка utun://-ссылок, авто-выбор лучшего
  достижимого узла, список кандидатов (вынесено из android jni_bridge)
- chatgui: диалог invite с выбором узла (комбобокс), события INVITE_CANDIDATES /
  INVITE_LINK_READY через gui_bridge
- headless/chatcli: invite <ch_id> [node_id], команда invite_nodes
- tcp_io: error_cb отличает грациозный EPOLLHUP (SO_ERROR==0) от реальной ошибки —
  при приостановленном чтении FIN не роняет недослейные данные (фикс flaky half-close)
- run_test.sh: half-close echo на выделенном порту 19190 + отдельный DNAT (был недостижим)
2026-09-07 13:59:15 +03:00
evgeny 897dba46d9 chat: права админа + member tags (verified/deleted) + ncd revive
- chat_admin: передача канальных privkey другому узлу (encrypted+signed,
  ETCP_RT_ID_ADMIN_KEY), событие ADMIN_KEY_RECEIVED
- member_sync/bridge: tags verified/deleted, is_channel_owner, transfer_admin
  (android JNI + chatgui memberpropsdialog)
- node_conn_direct: оживление timed_out entry — обновление линков в существующем
  conn (убрать старые, добавить новые) + немедленная очистка не поднявшегося
  conn без fin_wait — фикс invite/reconnect
2026-09-07 00:53:41 +03:00
evgeny b5346165e6 member detail: structured display with addresses, connections, BGP summary and socket names
- Extend MEMBER_DETAIL_LINK_SIZE to 63B with 20B sock_name per link
- Replace link_count with links_up/links_down (two uint16) in sock snap
- Add BGP hop list collection via topo_node_best_hop_list, post as CHAT_EVT_BGP_INFO
- Add direct RTT summary text via same event
- Rework AccountList detail panel: header + QTextEdit with monospace layout
- Display protocol (TCP/UDP), socket name line, colored dots for connections
- Show [up/down] link counts for self listen sockets
- Remove * prefix from link count display in Android
2026-08-11 16:05:35 +03:00
evgeny eea0ce5175 keepalive handshake: device_type + keepalive negotiation in UDP/TCP INIT
- Добавлен device_type (1 байт, CLIENT_TYPE_*) в INIT_REQUEST и INIT_RESPONSE
- Добавлен keepalive_interval (2 байта) в INIT_RESPONSE
- STCP handshake расширен с 43 до 46 байт (device_type+keepalive)
- negotiate_keepalive(): оба desktop/server → min, иначе (есть mobile) → max
- keepalive_interval вынесен в UTUN_INSTANCE для использования в handshake
- stcp_client_connect() принимает device_type и keepalive_interval
- peer_device_type/peer_keepalive_interval передаются через stcp_link в ETCP_LINK
2026-08-11 11:16:27 +03:00
evgeny 2eb7ce7c1e etcp: переупорядочить close + защита state==2 во всех API-точках; topo: правильная очистка group nodes и registry; chat/member: новый модуль member_sync; chatgui: обновления транспорта и UI 2026-08-09 12:39:53 +03:00