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

fix(ui): Display most recent group member's name instead of <Empty>

Fix #5294
This commit is contained in:
Anthony Bilinski 2018-08-22 22:19:56 -07:00
parent 8cfc1f0bbb
commit 11131fa083
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -51,9 +51,8 @@ void Group::updatePeer(int peerId, QString name)
if (f != nullptr) { if (f != nullptr) {
// use the displayed name from the friends list // use the displayed name from the friends list
toxpks[peerKey] = f->getDisplayedName(); toxpks[peerKey] = f->getDisplayedName();
} else {
emit userListChanged(groupId, toxpks);
} }
emit userListChanged(groupId, toxpks);
} }
void Group::setName(const QString& newTitle) void Group::setName(const QString& newTitle)