Browse Source

fix(groups): don't add friend alias to groups they aren't in

Fix #5657
reviewable/pr5659/r1
Anthony Bilinski 6 years ago
parent
commit
6801298e96
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 6
      src/model/friend.cpp

6
src/model/friend.cpp

@ -87,11 +87,9 @@ void Friend::setAlias(const QString& alias) @@ -87,11 +87,9 @@ void Friend::setAlias(const QString& alias)
}
for (Group* g : GroupList::getAllGroups()) {
if (userAlias.isEmpty()) {
g->updateUsername(friendPk, userName);
continue;
if (g->getPeerList().contains(friendPk)) {
g->updateUsername(friendPk, newDisplayed);
}
g->updateUsername(friendPk, userAlias);
}
}

Loading…
Cancel
Save