From e562896d63d8e1bd788d92a808eedb67d74769ff Mon Sep 17 00:00:00 2001 From: evgeny Date: Thu, 1 Oct 2026 16:25:52 +0300 Subject: [PATCH] Define asynchronous conversation snapshots for PM clients --- src/chat/chat_event.h | 1 + src/dm/dm_core.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/chat/chat_event.h b/src/chat/chat_event.h index 2fd1dc81..898eb400 100644 --- a/src/chat/chat_event.h +++ b/src/chat/chat_event.h @@ -65,6 +65,7 @@ extern "C" { #define CHAT_EVT_CALL_PATH 42 /* [call_id:8][text:var] — BGP-маршрут до пира звонка */ #define CHAT_EVT_RADIO_TALK 43 /* [group_id:8][src_node_id:8][stream_id:2][on:1] — кто-то начал/закончил говорить */ #define CHAT_EVT_CALL_CONNECTION 44 /* [call_id:8][CONN_TYPE:1][next_hop_node_id:8] — текущий путь отправки звонка */ +#define CHAT_EVT_DM_CONVERSATIONS 45 /* [JSON:utf8] — последние 200 личных бесед */ typedef void (*chat_event_handler_fn)(struct UTUN_INSTANCE* inst, int type, const uint8_t* data, int len); diff --git a/src/dm/dm_core.h b/src/dm/dm_core.h index 6ba86752..f0e06724 100644 --- a/src/dm/dm_core.h +++ b/src/dm/dm_core.h @@ -120,6 +120,8 @@ struct dm_messages_req { char conv_id[64]; }; void dm_messages_trampoline(void* arg); +struct dm_conversations_req { struct UTUN_INSTANCE* inst; }; +void dm_conversations_trampoline(void* arg); #ifdef __cplusplus }