summaryrefslogtreecommitdiff
path: root/plugins/AVS
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-08-15 18:39:49 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-08-15 18:39:49 +0300
commit7518561eddbe1349e145654e906321ce9808832b (patch)
tree58dc92721d71989dc54caa1c4edd9d05f3da411e /plugins/AVS
parent7b24bd112ee968f845205502227f25218d40229a (diff)
minor addition to the previous commit
Diffstat (limited to 'plugins/AVS')
-rw-r--r--plugins/AVS/src/contact_ava.cpp1
-rw-r--r--plugins/AVS/src/services.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/AVS/src/contact_ava.cpp b/plugins/AVS/src/contact_ava.cpp
index 9a4b935a49..d2d8c08399 100644
--- a/plugins/AVS/src/contact_ava.cpp
+++ b/plugins/AVS/src/contact_ava.cpp
@@ -30,6 +30,7 @@ class CContactAvatarDlg : public CDlgBase
INT_PTR OnAvatarChanged(UINT, WPARAM, LPARAM)
{
InvalidateRect(GetDlgItem(m_hwnd, IDC_PROTOPIC), nullptr, TRUE);
+ return 0;
}
INT_PTR OnDrawItem(UINT, WPARAM, LPARAM lParam)
diff --git a/plugins/AVS/src/services.cpp b/plugins/AVS/src/services.cpp
index d6fa1fdbb8..544e521b4e 100644
--- a/plugins/AVS/src/services.cpp
+++ b/plugins/AVS/src/services.cpp
@@ -167,7 +167,7 @@ INT_PTR SetAvatar(WPARAM hContact, LPARAM lParam)
MakePathRelative(hContact, szFinalName);
// Fix cache
- ChangeAvatar(hContact, true);
+ ChangeAvatar(hContact, false, false, ProtoGetAvatarFileFormat(szFinalName));
return 1;
}