Fix radio signaling and desktop channel type references

This commit is contained in:
evgeny committed 2026-10-19 13:58:39 +02:00
1 parent 3f97dafbf7
commit a97c915663
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -12,6 +12,7 @@
#include "../routing_layer/topo_node.h"
#include "../routing_layer/etcp_router.h"
#include "../routing_layer/route_crypto.h"
#include "../transport_layer/etcp.h"
#include "../../lib/mem.h"
#include "../../lib/debug_config.h"
#include "../../lib/u_async.h"
+1 -1
View File
@@ -811,7 +811,7 @@ void MainWindow::onRadioCallEvent(const uint8_t* data, int len) {
QString name = m_db->getDisplayName(peer);
if (name.isEmpty()) name = QStringLiteral("0x%1").arg(peer, 16, 16, QChar('0'));
QString channelName = channel;
for (const auto& row : m_db->getChannels()) if (row.id == channel) { channelName = row.name; break; }
for (const auto& row : m_db->getChannels()) if (row.channelId == channel) { channelName = row.name; break; }
auto* box = new QMessageBox(QMessageBox::Question, QCoreApplication::translate("ChatGui", "Radio call"),
QCoreApplication::translate("ChatGui", incoming ? "Incoming radio call from %1\nChannel: %2" : "Calling %1 by radio\nChannel: %2")
.arg(name, channelName), QMessageBox::NoButton, this);