fixed to/from for encrypted messages

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6842 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-10-18 14:31:13 +00:00
parent b9a79db9b0
commit 69862404d6
2 changed files with 2 additions and 1 deletions

View File

@ -2392,12 +2392,12 @@ void p3MsgService::receiveTurtleData(RsTurtleGenericTunnelItem *gitem,const std:
}
RsItem *itm = _serialiser->deserialise(item->data_bytes,&item->data_size) ;
RsMsgItem *mitm = dynamic_cast<RsMsgItem*>(itm) ;
if(mitm != NULL)
{
mitm->PeerId(hash) ;
mitm->msgto.ids.push_back(rsPeers->getGPGOwnId()) ;
handleIncomingItem(mitm) ;
}
else

View File

@ -564,6 +564,7 @@ void MessageWidget::fill(const std::string &msgId)
if (msgInfo.msgflags & RS_MSG_ENCRYPTED) {
ui.subjectText->setText(tr("Encrypted message"));
ui.fromText->setText(tr("Unknown (needs decryption)")) ;
} else {
ui.subjectText->setText(QString::fromStdWString(msgInfo.title));
}