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:
parent
c136a17ff0
commit
9b261fd870
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user