mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(core): don't log critical on every group join
It's expected behaviour that the peer is unknown when first joining a group. Fix #5118
This commit is contained in:
parent
3d7a872f1a
commit
e4f73011f9
|
@ -1160,6 +1160,11 @@ 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()) {
|
||||
return {};
|
||||
}
|
||||
|
||||
Tox_Err_Conference_Peer_Query error;
|
||||
size_t length = tox_conference_peer_get_name_size(tox.get(), groupId, peerId, &error);
|
||||
if (!parsePeerQueryError(error)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user