mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Log size of received avatar data
This commit is contained in:
parent
8fed00cf55
commit
2ff2414627
|
@ -372,7 +372,8 @@ void CoreFile::onFileRecvChunkCallback(Tox *tox, uint32_t friendId, uint32_t fil
|
||||||
pic.loadFromData(file->avatarData);
|
pic.loadFromData(file->avatarData);
|
||||||
if (!pic.isNull())
|
if (!pic.isNull())
|
||||||
{
|
{
|
||||||
qDebug() << "Core: Got avatar data from" << static_cast<Core*>(core)->getFriendUsername(friendId);
|
qDebug() << "Core: Got"<<file->avatarData.size()<<"bytes of avatar data from"
|
||||||
|
<< static_cast<Core*>(core)->getFriendUsername(friendId);
|
||||||
Settings::getInstance().saveAvatar(pic, static_cast<Core*>(core)->getFriendAddress(friendId));
|
Settings::getInstance().saveAvatar(pic, static_cast<Core*>(core)->getFriendAddress(friendId));
|
||||||
Settings::getInstance().saveAvatarHash(file->fileName, static_cast<Core*>(core)->getFriendAddress(friendId));
|
Settings::getInstance().saveAvatarHash(file->fileName, static_cast<Core*>(core)->getFriendAddress(friendId));
|
||||||
emit static_cast<Core*>(core)->friendAvatarChanged(friendId, pic);
|
emit static_cast<Core*>(core)->friendAvatarChanged(friendId, pic);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user