diff options
author | aunsane <aunsane@gmail.com> | 2017-03-02 22:45:54 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-03-02 22:45:54 +0300 |
commit | 403de4add1193c54e6b4387485fd8eab0c3c00bb (patch) | |
tree | ba70989f7baa52c6858b26c82717164bac62795c /protocols/Tox/src/tox_contacts.cpp | |
parent | 47873187548840ecfe712bd227a2c792277d5f21 (diff) |
Tox: more logs to #720
Diffstat (limited to 'protocols/Tox/src/tox_contacts.cpp')
-rw-r--r-- | protocols/Tox/src/tox_contacts.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp index d24da12812..a10fd03925 100644 --- a/protocols/Tox/src/tox_contacts.cpp +++ b/protocols/Tox/src/tox_contacts.cpp @@ -357,6 +357,8 @@ void CToxProto::OnConnectionStatusChanged(Tox*, uint32_t friendNumber, TOX_CONNE db_free(&dbv);
}
+ proto->debugLogA(__FUNCTION__": send avatar to friend (%d)", friendNumber);
+
TOX_ERR_FILE_SEND error;
uint32_t fileNumber = tox_file_send(proto->toxThread->Tox(), friendNumber, TOX_FILE_KIND_AVATAR, length, hash, NULL, 0, &error);
if (error != TOX_ERR_FILE_SEND_OK)
@@ -374,7 +376,10 @@ void CToxProto::OnConnectionStatusChanged(Tox*, uint32_t friendNumber, TOX_CONNE proto->transfers.Add(transfer);
}
else
+ {
+ proto->debugLogA(__FUNCTION__": unset avatar for friend (%d)", friendNumber);
tox_file_send(proto->toxThread->Tox(), friendNumber, TOX_FILE_KIND_AVATAR, 0, NULL, NULL, 0, NULL);
+ }
}
int CToxProto::OnUserInfoInit(WPARAM wParam, LPARAM lParam)
|