summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2016-11-03 10:14:34 +0500
committerElzorFox <elzorfox@ya.ru>2016-11-03 10:14:34 +0500
commitb9cdc72673360f1d9665cc26fb08b85fd7d1e79f (patch)
tree95d41a017d0954b1875520c2fe90137de5a6de40 /protocols
parent4de57225a80715e7c5e7bcd60d06b4c8531b54e5 (diff)
VKontakte: fix cleaning VK_USER_DEACTIVATE_ACTION on history sync (for N days methods)
Diffstat (limited to 'protocols')
-rw-r--r--protocols/VKontakte/src/vk_history.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_history.cpp b/protocols/VKontakte/src/vk_history.cpp
index 60413357ab..e0872ae243 100644
--- a/protocols/VKontakte/src/vk_history.cpp
+++ b/protocols/VKontakte/src/vk_history.cpp
@@ -96,7 +96,7 @@ void CVkProto::GetServerHistoryLastNDay(MCONTACT hContact, int NDay)
MEVENT hDBEventNext = db_event_next(hContact, hDBEvent);
DBEVENTINFO dbei = { sizeof(dbei) };
db_event_get(hDBEvent, &dbei);
- if (dbei.timestamp > tTime)
+ if (dbei.timestamp > tTime && dbei.eventType != VK_USER_DEACTIVATE_ACTION)
db_event_delete(hContact, hDBEvent);
hDBEvent = hDBEventNext;
}