diff --git a/tools/chatgui/src/mainwindow.cpp b/tools/chatgui/src/mainwindow.cpp index d56872942..489809899 100644 --- a/tools/chatgui/src/mainwindow.cpp +++ b/tools/chatgui/src/mainwindow.cpp @@ -736,6 +736,9 @@ void MainWindow::setupBridgeCallbacks() { }); /* ── DM (p2p чат) ── */ + gui_bridge_set_dm_members_cb([](const uint8_t* data, int len) { + if (s_mainWindow && s_mainWindow->m_accountList) s_mainWindow->m_accountList->onDmMembers(data, len); + }); gui_bridge_set_dm_conv_updated_cb([](const char* conv_id, int conv_id_len, uint64_t generation) { if (s_mainWindow) s_mainWindow->onDmConvUpdated(QString::fromUtf8(conv_id, conv_id_len), generation); @@ -872,7 +875,7 @@ void MainWindow::setupConnects() { m_messageList->loadChannel(channelId); if (channelId.startsWith(QStringLiteral("dm:"))) { /* DM: беседа уже создана/обслуживается dm_core */ - m_accountList->setChannel(QString()); + m_accountList->setChannel(channelId); m_channelList->setChannelUnreadCount(channelId, 0); return; } @@ -1191,7 +1194,7 @@ void MainWindow::onDmConvUpdated(const QString& convId, quint64 generation) { } QString key = QStringLiteral("dm:") + convId; m_channelList->loadChannels(); - if (m_currentChannelId == key) m_messageList->loadChannel(key); + if (m_currentChannelId == key) { m_messageList->loadChannel(key); m_accountList->setChannel(key); } } void MainWindow::onDmStartResult(quint64 request, const QString& convId, quint64 generation, bool success) { diff --git a/tools/chatgui/translations/chatgui_en.ts b/tools/chatgui/translations/chatgui_en.ts index 96ac9fe77..8f51a1119 100644 --- a/tools/chatgui/translations/chatgui_en.ts +++ b/tools/chatgui/translations/chatgui_en.ts @@ -3,6 +3,8 @@ ChatGui + My devicesMy devices + Peer devicesPeer devices Deleted accountsDeleted Expand deleted accountsExpand deleted accounts Collapse deleted accountsCollapse deleted accounts diff --git a/tools/chatgui/translations/chatgui_ru.ts b/tools/chatgui/translations/chatgui_ru.ts index c33a88cd7..f4048e3ac 100644 --- a/tools/chatgui/translations/chatgui_ru.ts +++ b/tools/chatgui/translations/chatgui_ru.ts @@ -3,6 +3,8 @@ ChatGui + My devicesМои устройства + Peer devicesУстройства собеседника Deleted accountsУдалённые Expand deleted accountsРазвернуть удалённые аккаунты Collapse deleted accountsСвернуть удалённые аккаунты