Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(core): message when peer changes group name
Browse files Browse the repository at this point in the history
boolean inversion in getGroupPeerName caused it to always return empty string

Fix #6001
  • Loading branch information
anthonybilinski committed Mar 15, 2020
1 parent 7e4f7f0 commit 0b5f751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
}

Expand Down

0 comments on commit 0b5f751

Please sign in to comment.