mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Don't log null/same avatar infos
Since avatars are pretty much stable, we don't need so much debug info
This commit is contained in:
parent
e5afa5f363
commit
804c3c3336
|
@ -665,7 +665,7 @@ void Core::onAvatarInfoCallback(Tox*, int32_t friendnumber, uint8_t format,
|
|||
|
||||
if (format == TOX_AVATAR_FORMAT_NONE)
|
||||
{
|
||||
qDebug() << "Core: Got null avatar info from" << core->getFriendUsername(friendnumber);
|
||||
//qDebug() << "Core: Got null avatar info from" << core->getFriendUsername(friendnumber);
|
||||
emit core->friendAvatarRemoved(friendnumber);
|
||||
QFile::remove(QDir(Settings::getSettingsDirPath()).filePath("avatars/"+core->getFriendAddress(friendnumber).left(64)+".png"));
|
||||
QFile::remove(QDir(Settings::getSettingsDirPath()).filePath("avatars/"+core->getFriendAddress(friendnumber).left(64)+".hash"));
|
||||
|
@ -679,8 +679,8 @@ void Core::onAvatarInfoCallback(Tox*, int32_t friendnumber, uint8_t format,
|
|||
qDebug() << "Core: Got new avatar info from" << core->getFriendUsername(friendnumber);
|
||||
tox_request_avatar_data(core->tox, friendnumber);
|
||||
}
|
||||
else
|
||||
qDebug() << "Core: Got same avatar info from" << core->getFriendUsername(friendnumber);
|
||||
//else
|
||||
// qDebug() << "Core: Got same avatar info from" << core->getFriendUsername(friendnumber);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user