mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix From text in Mail
Missing lines in Change RetroShareLink creation methodes as static
This commit is contained in:
parent
03d675157f
commit
6b2bc7d84b
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user