Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
savoirfairelinux
jami-daemon
Commits
099d197f
Commit
099d197f
authored
Aug 06, 2019
by
Eden Abitbol
Committed by
Adrien Béraud
Aug 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jamiaccount: cleanup
Change-Id: I5ad8f7293fda713e91342a16de463750697c83e6
parent
10b2aaa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/jamidht/jamiaccount.cpp
src/jamidht/jamiaccount.cpp
+2
-2
No files found.
src/jamidht/jamiaccount.cpp
View file @
099d197f
...
...
@@ -3161,11 +3161,11 @@ JamiAccount::updateContact(const dht::InfoHash& id, const Contact& contact)
bool
stateChanged
{
false
};
auto
c
=
contacts_
.
find
(
id
);
if
(
c
==
contacts_
.
end
())
{
JAMI_DBG
(
"[Account %s] new contact: %s"
,
getAccountID
().
c_str
(),
id
.
toString
().
c_str
());
//
JAMI_DBG("[Account %s] new contact: %s", getAccountID().c_str(), id.toString().c_str());
c
=
contacts_
.
emplace
(
id
,
contact
).
first
;
stateChanged
=
c
->
second
.
isActive
()
or
c
->
second
.
isBanned
();
}
else
{
JAMI_DBG
(
"[Account %s] updated contact: %s"
,
getAccountID
().
c_str
(),
id
.
toString
().
c_str
());
//
JAMI_DBG("[Account %s] updated contact: %s", getAccountID().c_str(), id.toString().c_str());
stateChanged
=
c
->
second
.
update
(
contact
);
}
if
(
stateChanged
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment