Fix From text in Mail

Missing lines in Change RetroShareLink creation methodes as static
This commit is contained in:
Phenom 2017-08-12 13:40:28 +02:00
parent 03d675157f
commit 6b2bc7d84b
2 changed files with 16 additions and 17 deletions

View File

@ -316,16 +316,15 @@ void RetroShareLink::fromUrl(const QUrl& url)
RsGxsId id(gxsid.toStdString()) ;
if(!id.isNull())
createIdentity(id,name,radix) ;
*this = createIdentity(id,name,radix) ;
else
std::cerr << "(EE) identity link is not valid." << std::endl;
return ;
}
if (url.host() == HOST_MESSAGE) {
_type = TYPE_MESSAGE;
std::string id = urlQuery.queryItemValue(MESSAGE_ID).toStdString();
createMessage(RsPeerId(id), urlQuery.queryItemValue(MESSAGE_SUBJECT));
*this = createMessage(RsPeerId(id), urlQuery.queryItemValue(MESSAGE_SUBJECT));
return;
}

View File

@ -590,12 +590,12 @@ void MessageWidget::fill(const std::string &msgId)
if(msgInfo.msgflags & RS_MSG_DISTANT) // distant message
{
tooltip_string = PeerDefs::rsidFromId(msgInfo.rsgxsid_srcId) ;
link.createMessage(msgInfo.rsgxsid_srcId, "");
link = RetroShareLink::createMessage(msgInfo.rsgxsid_srcId, "");
}
else
{
tooltip_string = PeerDefs::rsidFromId(msgInfo.rspeerid_srcId) ;
link.createMessage(msgInfo.rspeerid_srcId, "");
link = RetroShareLink::createMessage(msgInfo.rspeerid_srcId, "");
}
if ((msgInfo.msgflags & RS_MSG_SYSTEM) && msgInfo.rspeerid_srcId == ownId) {