diff --git a/src/jamidht/jamiaccount.cpp b/src/jamidht/jamiaccount.cpp index 45c1701c86119216688835aedac990580370ff80..ab7e184610e9a1e76f72f3cce9b1898860cf1b39 100644 --- a/src/jamidht/jamiaccount.cpp +++ b/src/jamidht/jamiaccount.cpp @@ -1102,7 +1102,9 @@ JamiAccount::loadAccount(const std::string& archive_password, if (auto convModule = shared->convModule()) convModule->removeContact(uri, banned); // Remove current connections with contact - if (shared->connectionManager_) { + // Note: if contact is ourself, we don't close the connection + // because it's used for syncing other conversations. + if (shared->connectionManager_ && uri != shared->getUsername()) { shared->connectionManager_->closeConnectionsWith(uri); } // Update client.