From 805f7537279f5421d9c81016cacc44d07a423b2d Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 20 Jun 2019 21:59:56 +0200 Subject: [PATCH] fixed parsing of short invite --- libretroshare/src/rsserver/p3peers.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libretroshare/src/rsserver/p3peers.cc b/libretroshare/src/rsserver/p3peers.cc index 70db57b5c..aaf3097a5 100644 --- a/libretroshare/src/rsserver/p3peers.cc +++ b/libretroshare/src/rsserver/p3peers.cc @@ -1268,6 +1268,8 @@ bool p3Peers::parseShortInvite(const std::string& inviteStrUrl, RsPeerDetails& d case RsShortInviteFieldType::PGP_FINGERPRINT: RS_SERIAL_PROCESS(details.fpr); + + details.gpg_id = PGPHandler::pgpIdFromFingerprint(details.fpr); break; case RsShortInviteFieldType::LOCATOR: @@ -1342,6 +1344,7 @@ bool p3Peers::parseShortInvite(const std::string& inviteStrUrl, RsPeerDetails& d default: RsWarn() << __PRETTY_FUNCTION__ << " got unkown field type: " << static_cast(fieldType) << std::endl; + return false; break; } }