mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-20 03:48:16 -04:00
fixed parsing of short invite
This commit is contained in:
parent
57a548531c
commit
805f753727
1 changed files with 3 additions and 0 deletions
|
@ -1268,6 +1268,8 @@ bool p3Peers::parseShortInvite(const std::string& inviteStrUrl, RsPeerDetails& d
|
||||||
|
|
||||||
case RsShortInviteFieldType::PGP_FINGERPRINT:
|
case RsShortInviteFieldType::PGP_FINGERPRINT:
|
||||||
RS_SERIAL_PROCESS(details.fpr);
|
RS_SERIAL_PROCESS(details.fpr);
|
||||||
|
|
||||||
|
details.gpg_id = PGPHandler::pgpIdFromFingerprint(details.fpr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RsShortInviteFieldType::LOCATOR:
|
case RsShortInviteFieldType::LOCATOR:
|
||||||
|
@ -1342,6 +1344,7 @@ bool p3Peers::parseShortInvite(const std::string& inviteStrUrl, RsPeerDetails& d
|
||||||
default:
|
default:
|
||||||
RsWarn() << __PRETTY_FUNCTION__ << " got unkown field type: "
|
RsWarn() << __PRETTY_FUNCTION__ << " got unkown field type: "
|
||||||
<< static_cast<uint32_t>(fieldType) << std::endl;
|
<< static_cast<uint32_t>(fieldType) << std::endl;
|
||||||
|
return false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue