diff --git a/src/model/friend.cpp b/src/model/friend.cpp index 28d30a43c..8b81346ed 100644 --- a/src/model/friend.cpp +++ b/src/model/friend.cpp @@ -52,6 +52,11 @@ void Friend::setName(const QString& _name) // save old displayed name to be able to compare for changes const auto oldDisplayed = getDisplayedName(); + if (userName == userAlias) { + userAlias.clear(); // Because userAlias was set on name change before (issue #5013) + // we clear alias if equal to old name so that name change is visible. + // TODO: We should not modify alias on setName. + } if (userName != name) { userName = name; emit nameChanged(friendId, name);