Commit 099d197f authored by Eden Abitbol's avatar Eden Abitbol Committed by Adrien Béraud

jamiaccount: cleanup

Change-Id: I5ad8f7293fda713e91342a16de463750697c83e6
parent 10b2aaa1
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment