summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Tox/src/tox_avatars.cpp4
-rw-r--r--protocols/Tox/src/tox_contacts.cpp1
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");
}
}