mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-07 22:02:12 +08:00
account_manager: log error if trust request is not sent
Change-Id: Iac15b1cbefadb2b438029f53608542ba577e28af
This commit is contained in:
@ -598,12 +598,20 @@ AccountManager::sendTrustRequest(const std::string& to,
|
||||
}
|
||||
forEachDevice(toH,
|
||||
[this, toH, convId, payload](const std::shared_ptr<dht::crypto::PublicKey>& dev) {
|
||||
JAMI_WARN("sending trust request to: %s / %s",
|
||||
toH.toString().c_str(),
|
||||
dev->getLongId().toString().c_str());
|
||||
auto to = toH.toString();
|
||||
JAMI_WARNING("sending trust request to: {:s} / {:s}",
|
||||
to,
|
||||
dev->getLongId().toString());
|
||||
dht_->putEncrypted(dht::InfoHash::get("inbox:" + dev->getId().toString()),
|
||||
dev,
|
||||
dht::TrustRequest(DHT_TYPE_NS, convId, payload));
|
||||
dht::TrustRequest(DHT_TYPE_NS, convId, payload),
|
||||
[to, size = payload.size()](bool ok) {
|
||||
if (!ok)
|
||||
JAMI_ERROR("Tried to send request {:s} (size: "
|
||||
"{:d}), but put failed",
|
||||
to,
|
||||
size);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user