diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-01-06 19:15:53 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-01-06 19:15:53 +0000 |
commit | eed529e954955b3de9d075f62712dde3d632b09b (patch) | |
tree | 4b76a2b9948e596676b3c71eafb63785c80e422c | |
parent | a9003f1e9a8b4ac87a94a79882daca1e559b38b3 (diff) |
Tox: fixed own avatar work
git-svn-id: http://svn.miranda-ng.org/main/trunk@11781 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/Tox/src/tox_avatars.cpp | 4 | ||||
-rw-r--r-- | protocols/Tox/src/tox_contacts.cpp | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_avatars.cpp b/protocols/Tox/src/tox_avatars.cpp index 5c7c43664e..b69c462559 100644 --- a/protocols/Tox/src/tox_avatars.cpp +++ b/protocols/Tox/src/tox_avatars.cpp @@ -30,10 +30,10 @@ std::tstring CToxProto::GetAvatarFilePath(MCONTACT hContact) void CToxProto::SetToxAvatar(std::tstring path, bool checkHash)
{
- if (!IsOnline())
+ /*if (!IsOnline())
{
return;
- }
+ }*/
int length;
uint8_t *data;
diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp index 02549f4abb..48c0de0274 100644 --- a/protocols/Tox/src/tox_contacts.cpp +++ b/protocols/Tox/src/tox_contacts.cpp @@ -265,6 +265,7 @@ void CToxProto::OnConnectionStatusChanged(Tox *tox, const int number, const uint proto->SetContactStatus(hContact, newStatus);
if (status)
{
+ tox_send_avatar_info(proto->tox, number);
proto->delSetting(hContact, "Auth");
}
}
|