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:
parent
7e4f7f0489
commit
0b5f751104
@ -1183,7 +1183,7 @@ QString Core::getGroupPeerName(int groupId, int peerId) const
|
|||||||
QMutexLocker ml{&coreLoopLock};
|
QMutexLocker ml{&coreLoopLock};
|
||||||
|
|
||||||
// from tox.h: "If peer_number == UINT32_MAX, then author is unknown (e.g. initial joining the conference)."
|
// 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 {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user