From f0173fd8343e7f1469b40ea8372f6b951846f63b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 29 Feb 2020 21:32:45 +0300 Subject: MessageState: rewritten from scratch to work --- plugins/MessageState/src/clist_extra.cpp | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 plugins/MessageState/src/clist_extra.cpp (limited to 'plugins/MessageState/src/clist_extra.cpp') diff --git a/plugins/MessageState/src/clist_extra.cpp b/plugins/MessageState/src/clist_extra.cpp deleted file mode 100644 index 01a0f52739..0000000000 --- a/plugins/MessageState/src/clist_extra.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "stdafx.h" - -HANDLE hExtraIcon = nullptr; - -int ExtraIconsApply(WPARAM hContact, LPARAM force) -{ - if (hContact != NULL) { - if (HasUnread(hContact) || force) - ExtraIcon_SetIcon(hExtraIcon, hContact, Icons[ICON_EXTRA].hIcolib); - else - ExtraIcon_Clear(hExtraIcon, hContact); - } - - return 0; -} - -void InitClistExtraIcon() -{ - hExtraIcon = ExtraIcon_RegisterIcolib("messagestate_unread", LPGEN("MessageState unread extra icon"), "clist_unread_icon"); - HookEvent(ME_CLIST_EXTRA_IMAGE_APPLY, ExtraIconsApply); -} -- cgit v1.2.3