summaryrefslogtreecommitdiff
path: root/plugins/MessageState/src/services.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-04-22 16:53:14 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-04-22 16:53:14 +0000
commit17da1798498188c1f221e738866107e69d6af066 (patch)
tree64da750c77dcf7ab12654d3fe22d2abeb8f8f3e9 /plugins/MessageState/src/services.cpp
parent2db93e0b278176b4dd68e8565ddab139d86c6e7b (diff)
MessageState: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@16747 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MessageState/src/services.cpp')
-rw-r--r--plugins/MessageState/src/services.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/MessageState/src/services.cpp b/plugins/MessageState/src/services.cpp
index 11beec6d04..362354e118 100644
--- a/plugins/MessageState/src/services.cpp
+++ b/plugins/MessageState/src/services.cpp
@@ -1,18 +1,12 @@
#include "stdafx.h"
-extern HANDLE hUpdateService;
+HANDLE hUpdateService;
void InitServices()
{
hUpdateService = CreateServiceFunction(MS_MESSAGESTATE_UPDATE, UpdateService);
}
-void DestroyServices()
-{
- if (hUpdateService)
- DestroyServiceFunction(hUpdateService);
-}
-
INT_PTR UpdateService(WPARAM hContact, LPARAM lParam)
{
MessageReadData *mrd = (MessageReadData*)lParam;
@@ -20,8 +14,7 @@ INT_PTR UpdateService(WPARAM hContact, LPARAM lParam)
{
db_set_dw(hContact, MODULENAME, DBKEY_MESSAGE_READ_TIME, mrd->dw_lastTime);
db_set_dw(hContact, MODULENAME, DBKEY_MESSAGE_READ_TIME_TYPE, mrd->iTimeType);
- IconsUpdate(hContact, mrd->dw_lastTime);
- ExtraIconsApply(hContact, 0);
+ IconsUpdate(hContact);
}
return 0;
} \ No newline at end of file