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;
}