extracted clientId from clientInfo to use it in the presence information later

This commit is contained in:
Blue 2023-03-13 22:07:10 +03:00
parent 8ec0af3205
commit 76a9c5da0c
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
6 changed files with 137 additions and 38 deletions

View file

@ -42,9 +42,9 @@ bool Core::ClientCache::checkClient(const QString& node, const QString& ver, con
QString id = node + "/" + ver;
if (requested.count(id) == 0 && !cache->checkRecord(id)) {
Shared::ClientInfo& info = requested.insert(std::make_pair(id, Shared::ClientInfo())).first->second;
info.node = node;
info.verification = ver;
info.hash = hash;
info.id.node = node;
info.id.verification = ver;
info.id.hash = hash;
emit requestClientInfo(id);
return false;
}