summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_avatars.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src/tox_avatars.cpp')
-rw-r--r--protocols/Tox/src/tox_avatars.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_avatars.cpp b/protocols/Tox/src/tox_avatars.cpp
index 76b59165c1..3c3bcbaaeb 100644
--- a/protocols/Tox/src/tox_avatars.cpp
+++ b/protocols/Tox/src/tox_avatars.cpp
@@ -82,6 +82,8 @@ void CToxProto::SetToxAvatar(const wchar_t* path)
return;
}
+ debugLogA(__FUNCTION__": send avatar to friend (%d)", friendNumber);
+
TOX_ERR_FILE_SEND error;
uint32_t fileNumber = tox_file_send(toxThread->Tox(), friendNumber, TOX_FILE_KIND_AVATAR, length, hash, NULL, 0, &error);
if (error != TOX_ERR_FILE_SEND_OK)
@@ -184,6 +186,8 @@ INT_PTR CToxProto::SetMyAvatar(WPARAM, LPARAM lParam)
if (friendNumber == UINT32_MAX)
continue;
+ debugLogA(__FUNCTION__": unset avatar for friend (%d)", friendNumber);
+
TOX_ERR_FILE_SEND error;
tox_file_send(toxThread->Tox(), friendNumber, TOX_FILE_KIND_AVATAR, 0, NULL, NULL, 0, &error);
if (error != TOX_ERR_FILE_SEND_OK)