1
0
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:
Anthony Bilinski 2019-09-13 14:45:49 -07:00
parent 3d7a872f1a
commit e4f73011f9
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -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)) {