Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
baf2510f
Commit
baf2510f
authored
2 years ago
by
Sébastien Blin
Browse files
Options
Downloads
Patches
Plain Diff
account_manager: log error if trust request is not sent
Change-Id: Iac15b1cbefadb2b438029f53608542ba577e28af
parent
b7dd4256
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/jamidht/account_manager.cpp
+12
-4
12 additions, 4 deletions
src/jamidht/account_manager.cpp
with
12 additions
and
4 deletions
src/jamidht/account_manager.cpp
+
12
−
4
View file @
baf2510f
...
...
@@ -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
);
});
});
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment