From fefc65b03ec35e899d172a403f373c2d1d6a80bf Mon Sep 17 00:00:00 2001 From: defnax <9952056+defnax@users.noreply.github.com> Date: Sun, 19 Apr 2026 21:00:07 +0200 Subject: [PATCH] Fix for RsServiceType::WIRE --- retroshare-gui/src/gui/Identity/IdDialog.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/retroshare-gui/src/gui/Identity/IdDialog.cpp b/retroshare-gui/src/gui/Identity/IdDialog.cpp index 3dd6e9411..ed29ed316 100644 --- a/retroshare-gui/src/gui/Identity/IdDialog.cpp +++ b/retroshare-gui/src/gui/Identity/IdDialog.cpp @@ -60,6 +60,7 @@ #include "retroshare/rsgxschannels.h" #include "retroshare/rsgxsforums.h" #include "retroshare/rsposted.h" +#include #include #include @@ -1888,6 +1889,7 @@ QString IdDialog::createUsageString(const RsIdentityUsage& u) const case RsServiceType::GXS_TRANS: return tr("GxsMail author "); case RsServiceType::GXSCIRCLE: service_name = tr("GxsCircles"); service_type = RetroShareLink::TYPE_CIRCLES; break ; + case RsServiceType::WIRE: service_name = tr("Wire"); service_type = RetroShareLink::TYPE_WIRE; break ; default: service_name = tr("Unknown (service=")+QString::number((int)u.mServiceId,16)+")"; service_type = RetroShareLink::TYPE_UNKNOWN ; @@ -2054,6 +2056,13 @@ QString IdDialog::getGroupName(uint32_t service_type, const RsGxsGroupId& groupI if (!name.isEmpty()) return name; } } + else if (service_type == RetroShareLink::TYPE_WIRE && rsWire) { + RsWireGroupSPtr group; // Shared pointer for the result + if (rsWire->getWireGroup(groupId, group) && group) { + QString name = QString::fromUtf8(group->mMeta.mGroupName.c_str()); + if (!name.isEmpty()) return name; + } + } // Returns the raw ID string as the label return QString::fromStdString(groupId.toStdString());