chatgui: инициализация call/dm/media backfill при старте узла (fix звонков)

This commit is contained in:
evgeny committed 2026-09-21 17:20:41 +03:00
1 parent 6a0373ee73
commit 19dc076528
1 file changed
+8
+8
View File
@@ -23,6 +23,9 @@ extern "C" {
#include "chat/chat_core.h"
#include "chat/chat_event.h"
#include "chat/db_sync.h"
#include "call/call.h"
#include "dm/dm_core.h"
#include "dm/dm_mailbox.h"
#include "gui_bridge.h"
#include "topo_node_sqlite.h"
#include "topo_node.h"
@@ -234,6 +237,11 @@ void UtunNode::runLoop() {
/* Initialize chat_core (DB) and chat_sync (channel/message P2P sync) */
chat_core_init(m_instance, QString(m_dbPath + "/chats.db").toUtf8().constData());
chat_sync_init(m_instance);
chat_media_backfill(m_instance);
chat_media_startup_backfill_init(m_instance);
dm_mailbox_init(m_instance);
dm_core_init(m_instance);
call_init(m_instance);
chat_core_sync_my_addresses(m_instance);
DEBUG_DEBUG(DEBUG_CATEGORY_GENERAL, "chat_core + chat_sync initialized");