From a16ff426aec7256f096bf60e323d2055c138558a Mon Sep 17 00:00:00 2001 From: Phenom Date: Fri, 14 Jul 2017 19:16:27 +0200 Subject: [PATCH] Add [Unsigned] before name in chat for unsigned (anonymous) GxsID. --- retroshare-gui/src/gui/chat/ChatWidget.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/chat/ChatWidget.cpp b/retroshare-gui/src/gui/chat/ChatWidget.cpp index d27ac2412..baf868f20 100644 --- a/retroshare-gui/src/gui/chat/ChatWidget.cpp +++ b/retroshare-gui/src/gui/chat/ChatWidget.cpp @@ -1006,8 +1006,12 @@ void ChatWidget::addChatMsg(bool incoming, const QString &name, const RsGxsId gx QString strGxsId = ""; if (!gxsId.isNull()) { strGxsId = QString::fromStdString(gxsId.toStdString()); + RsIdentityDetails details; + rsIdentity->getIdDetails(gxsId, details); + formatMsg.replace(QString("") - ,QString("").arg(strGxsId) ); + ,QString("").arg(strGxsId) + .append(details.mFlags & RS_IDENTITY_FLAGS_PGP_LINKED ? "" : tr("[Unsigned]") ) ); } else { formatMsg.replace(QString(""),""); }