refactor(chat): keep the chat identity bound to its core instance

This commit is contained in:
evgeny committed 2026-10-27 11:48:09 +01:00
1 parent 68ce0e3d71
commit fb641afef0
2 files changed
-8

No files matched your search

-3
View File
@@ -177,9 +177,6 @@ void chat_core_delete_channel_trampoline(void* arg);
// ── Утилиты ──
// Задать локальный ID в контексте чата; ключи и идентичность ядра не меняет.
void chat_core_set_my_node_id(struct UTUN_INSTANCE* inst, uint64_t node_id);
// Сохранить имя узла и обновить собственные member-записи каналов.
void chat_core_update_my_name(struct UTUN_INSTANCE* inst, const char* name);
-5
View File
@@ -26,11 +26,6 @@
#include <openssl/evp.h>
#include <limits.h>
void chat_core_set_my_node_id(struct UTUN_INSTANCE* inst, uint64_t node_id) {
struct chat_core_ctx* cc = CC(inst);
if (cc) cc->my_node_id = node_id;
}
void chat_core_update_my_name(struct UTUN_INSTANCE* inst, const char* name) {
struct chat_core_ctx* cc = CC(inst);
if (!cc || !cc->initialized || !name) return;