Browse Source

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

proxy
evgeny 2 weeks ago
parent
commit
19dc076528
  1. 8
      tools/chatgui/transport/utun_node.cpp

8
tools/chatgui/transport/utun_node.cpp

@ -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");

Loading…
Cancel
Save