diff options
Diffstat (limited to 'protocols/Tlen/src/jabber_thread.cpp')
-rw-r--r-- | protocols/Tlen/src/jabber_thread.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/Tlen/src/jabber_thread.cpp b/protocols/Tlen/src/jabber_thread.cpp index d32bd35a32..3b93aa51d5 100644 --- a/protocols/Tlen/src/jabber_thread.cpp +++ b/protocols/Tlen/src/jabber_thread.cpp @@ -710,11 +710,10 @@ static void JabberProcessMessage(XmlNode *node, ThreadData *info) if (msgTime == 0) {
msgTime = time(NULL);
} else {
- HANDLE hDbEvent = (HANDLE) CallService(MS_DB_EVENT_FINDLAST, (WPARAM) hContact, 0);
+ HANDLE hDbEvent = db_event_last(hContact);
if (hDbEvent != NULL) {
- DBEVENTINFO dbei = { 0 };
- dbei.cbSize = sizeof(dbei);
- CallService(MS_DB_EVENT_GET, (WPARAM) hDbEvent, (LPARAM) &dbei);
+ DBEVENTINFO dbei = { sizeof(dbei) };
+ db_event_get( hDbEvent, &dbei);
if (msgTime < dbei.timestamp) {
msgTime = dbei.timestamp + 1;
}
|