mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Merge pull request #941 from PhenomRetroShare/Add_UnsignedInChatName
Add [Unsigned] before name in chat for unsigned (anonymous) GxsID.
This commit is contained in:
commit
7d8b3796d1
@ -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("<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 {
|
||||
formatMsg.replace(QString("<a name=\"name\">"),"");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user