summaryrefslogtreecommitdiff
path: root/plugins/MessageState/src/services.cpp
diff options
context:
space:
mode:
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