1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(core): this fixes displaying nickname refreshes in groups

This commit is contained in:
Monsterovich 2018-12-25 19:14:31 +02:00
parent c136a17ff0
commit 9b261fd870

View File

@ -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);
}