diff --git a/src/model/group.cpp b/src/model/group.cpp index e03bd33da..e5c20f861 100644 --- a/src/model/group.cpp +++ b/src/model/group.cpp @@ -46,12 +46,7 @@ void Group::updatePeer(int peerId, QString name) { ToxPk peerKey = Core::getInstance()->getGroupPeerPk(groupId, peerId); toxpks[peerKey] = name; - - Friend* f = FriendList::findFriend(peerKey); - if (f != nullptr) { - // use the displayed name from the friends list - toxpks[peerKey] = f->getDisplayedName(); - } + qDebug() << "name change: " + name; emit userListChanged(groupId, toxpks); }