From 43d590fffd0de4750e75189e5d38b37374f9c459 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Aug 2022 17:59:17 +0300 Subject: fixes #3169 (User info: disable "Delete avatar" button if we lack of permissions) --- plugins/AVS/src/userInfo.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/AVS/src') diff --git a/plugins/AVS/src/userInfo.cpp b/plugins/AVS/src/userInfo.cpp index ca47ea06be..2a90f55e27 100644 --- a/plugins/AVS/src/userInfo.cpp +++ b/plugins/AVS/src/userInfo.cpp @@ -120,6 +120,9 @@ public: { hHook = HookEventMessage(ME_AV_AVATARCHANGED, m_hwnd, DM_AVATARCHANGED); + if (m_hContact != 0) + btnDelete.Hide(); + LoadTransparentData(m_hwnd, GetContactThatHaveTheAvatar(m_hContact)); return true; } -- cgit v1.2.3