RsIdentity update own ids cache on creation

This commit is contained in:
Gioacchino Mazzurco 2019-09-12 12:02:24 +02:00
parent 06840b86f5
commit c2cb63b40c
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051
2 changed files with 7 additions and 2 deletions

View File

@ -968,6 +968,11 @@ bool p3IdService::createIdentity(
id = RsGxsId(meta.mGroupId); id = RsGxsId(meta.mGroupId);
{
RS_STACK_MUTEX(mIdMtx);
mOwnIds.push_back(id);
if(!pseudonimous) mOwnSignedIds.push_back(id);
}
LabelCreateIdentityCleanup: LabelCreateIdentityCleanup:
if(!pseudonimous && !pgpPassword.empty()) if(!pseudonimous && !pgpPassword.empty())
@ -3036,7 +3041,7 @@ bool p3IdService::cache_request_ownids()
RsGenExchange::getTokenService()->requestGroupInfo(token, ansType, opts); RsGenExchange::getTokenService()->requestGroupInfo(token, ansType, opts);
GxsTokenQueue::queueRequest(token, GXSIDREQ_CACHEOWNIDS); GxsTokenQueue::queueRequest(token, GXSIDREQ_CACHEOWNIDS);
return 1; return true;
} }

View File

@ -96,7 +96,7 @@ int main(int argc, char* argv[])
signal(SIGBREAK, signalHandler); signal(SIGBREAK, signalHandler);
#endif // ifdef SIGBREAK #endif // ifdef SIGBREAK
RsInfo() << RsInfo() << "\n" <<
"+================================================================+\n" "+================================================================+\n"
"| o---o o |\n" "| o---o o |\n"
"| \\ / - Retroshare Service - / \\ |\n" "| \\ / - Retroshare Service - / \\ |\n"