diff --git a/src/jamidht/jamiaccount.cpp b/src/jamidht/jamiaccount.cpp index 39131965c942fe2276bddfe782e0a992afdec779..a0fe25252e6123cb0c91b5118b7aef20f8dfb111 100644 --- a/src/jamidht/jamiaccount.cpp +++ b/src/jamidht/jamiaccount.cpp @@ -1471,8 +1471,9 @@ JamiAccount::registerName(const std::string& name, if (response == NameDirectory::RegistrationResponse::success) { if (auto this_ = w.lock()) { this_->registeredName_ = name; - this_->editConfig( - [&](JamiAccountConfig& config) { config.registeredName = name; }); + if (this_->config().registeredName != name) + this_->editConfig( + [&](JamiAccountConfig& config) { config.registeredName = name; }); emitSignal<libjami::ConfigurationSignal::VolatileDetailsChanged>( this_->accountID_, this_->getVolatileAccountDetails()); }