Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(groups): don't add friend alias to groups they aren't in
Browse files Browse the repository at this point in the history
Fix #5657
  • Loading branch information
anthonybilinski committed May 14, 2019
1 parent 6522988 commit 6801298
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/model/friend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 6801298

Please sign in to comment.