From 0b5f751104664fb1d624910ed930ab1b05a7cc4f Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Sun, 15 Mar 2020 01:26:52 -0700 Subject: [PATCH] fix(core): message when peer changes group name boolean inversion in getGroupPeerName caused it to always return empty string Fix #6001 --- src/core/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index 98807887a..3f90859e4 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -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::max()) { + if (peerId == std::numeric_limits::max()) { return {}; }