Commit 333e190f authored by Hugo Lefeuvre's avatar Hugo Lefeuvre Committed by Hugo Lefeuvre
Browse files

chatview: fix ringInfoHash appearing twice

Do not display both alias and id if they are identical.

Change-Id: I460781e80339e29b55de6b2074e5825f110f712f
Gitlab: #926
parent 5c419984
......@@ -518,6 +518,8 @@ update_chatview_frame(ChatView* self)
auto bestName = contactInfo.registeredName;
if (bestName.empty())
bestName = contactInfo.profileInfo.uri;
if (bestName == alias)
alias = "";
bestName.erase(std::remove(bestName.begin(), bestName.end(), '\r'), bestName.end());
alias.erase(std::remove(alias.begin(), alias.end(), '\r'), alias.end());
......
Supports Markdown
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