From eed529e954955b3de9d075f62712dde3d632b09b Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 6 Jan 2015 19:15:53 +0000 Subject: Tox: fixed own avatar work git-svn-id: http://svn.miranda-ng.org/main/trunk@11781 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_avatars.cpp | 4 ++-- protocols/Tox/src/tox_contacts.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'protocols/Tox/src') 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"); } } -- cgit v1.2.3