mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-22 05:14:31 -04:00
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:
parent
b9a79db9b0
commit
69862404d6
2 changed files with 2 additions and 1 deletions
|
@ -2392,12 +2392,12 @@ void p3MsgService::receiveTurtleData(RsTurtleGenericTunnelItem *gitem,const std:
|
||||||
}
|
}
|
||||||
|
|
||||||
RsItem *itm = _serialiser->deserialise(item->data_bytes,&item->data_size) ;
|
RsItem *itm = _serialiser->deserialise(item->data_bytes,&item->data_size) ;
|
||||||
|
|
||||||
RsMsgItem *mitm = dynamic_cast<RsMsgItem*>(itm) ;
|
RsMsgItem *mitm = dynamic_cast<RsMsgItem*>(itm) ;
|
||||||
|
|
||||||
if(mitm != NULL)
|
if(mitm != NULL)
|
||||||
{
|
{
|
||||||
mitm->PeerId(hash) ;
|
mitm->PeerId(hash) ;
|
||||||
|
mitm->msgto.ids.push_back(rsPeers->getGPGOwnId()) ;
|
||||||
handleIncomingItem(mitm) ;
|
handleIncomingItem(mitm) ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -564,6 +564,7 @@ void MessageWidget::fill(const std::string &msgId)
|
||||||
|
|
||||||
if (msgInfo.msgflags & RS_MSG_ENCRYPTED) {
|
if (msgInfo.msgflags & RS_MSG_ENCRYPTED) {
|
||||||
ui.subjectText->setText(tr("Encrypted message"));
|
ui.subjectText->setText(tr("Encrypted message"));
|
||||||
|
ui.fromText->setText(tr("Unknown (needs decryption)")) ;
|
||||||
} else {
|
} else {
|
||||||
ui.subjectText->setText(QString::fromStdWString(msgInfo.title));
|
ui.subjectText->setText(QString::fromStdWString(msgInfo.title));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue