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

fix(core): message when peer changes group name

boolean inversion in getGroupPeerName caused it to always return empty string

Fix #6001
This commit is contained in:
Anthony Bilinski 2020-03-15 01:26:52 -07:00
parent 7e4f7f0489
commit 0b5f751104
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -1183,7 +1183,7 @@ QString Core::getGroupPeerName(int groupId, int peerId) const
QMutexLocker ml{&coreLoopLock};
// from tox.h: "If peer_number == UINT32_MAX, then author is unknown (e.g. initial joining the conference)."
if (peerId != std::numeric_limits<uint32_t>::max()) {
if (peerId == std::numeric_limits<uint32_t>::max()) {
return {};
}