mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-21 12:54:26 -04:00
Add [Unsigned] before name in chat for unsigned (anonymous) GxsID.
This commit is contained in:
parent
5ffb54929c
commit
a16ff426ae
1 changed files with 5 additions and 1 deletions
|
@ -1006,8 +1006,12 @@ void ChatWidget::addChatMsg(bool incoming, const QString &name, const RsGxsId gx
|
||||||
QString strGxsId = "";
|
QString strGxsId = "";
|
||||||
if (!gxsId.isNull()) {
|
if (!gxsId.isNull()) {
|
||||||
strGxsId = QString::fromStdString(gxsId.toStdString());
|
strGxsId = QString::fromStdString(gxsId.toStdString());
|
||||||
|
RsIdentityDetails details;
|
||||||
|
rsIdentity->getIdDetails(gxsId, details);
|
||||||
|
|
||||||
formatMsg.replace(QString("<a name=\"name\">")
|
formatMsg.replace(QString("<a name=\"name\">")
|
||||||
,QString("<a name=\"").append(PERSONID).append("%1\">").arg(strGxsId) );
|
,QString("<a name=\"").append(PERSONID).append("%1\">").arg(strGxsId)
|
||||||
|
.append(details.mFlags & RS_IDENTITY_FLAGS_PGP_LINKED ? "" : tr("[Unsigned]") ) );
|
||||||
} else {
|
} else {
|
||||||
formatMsg.replace(QString("<a name=\"name\">"),"");
|
formatMsg.replace(QString("<a name=\"name\">"),"");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue