From 7518561eddbe1349e145654e906321ce9808832b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 15 Aug 2022 18:39:49 +0300 Subject: minor addition to the previous commit --- plugins/AVS/src/contact_ava.cpp | 1 + plugins/AVS/src/services.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/AVS/src') 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; } -- cgit v1.2.3