From 9b261fd870f8a240cdf93c5acc2235efaa7a8116 Mon Sep 17 00:00:00 2001 From: Monsterovich Date: Tue, 25 Dec 2018 19:14:31 +0200 Subject: [PATCH] fix(core): this fixes displaying nickname refreshes in groups --- src/model/group.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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); }