diff options
author | ElzorFox <elzorfox@ya.ru> | 2018-09-21 23:27:02 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2018-09-21 23:27:17 +0500 |
commit | dfc40eb5c9d357c7cd5e8cb0e9e6f2173b4935ef (patch) | |
tree | 6b19efd113451ed462e09291b15c201d3683fea0 /protocols/VKontakte/src/misc.cpp | |
parent | a2245d6446c46b5701190e957f56a42f038eea88 (diff) |
VKontakte: crutch for prevention of duplicate messages removed
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 34b3f17614..847250b6ef 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -1565,3 +1565,11 @@ int CVkProto::DeleteContact(MCONTACT hContact) setByte(hContact, "SilentDelete", 1);
return db_delete_contact(hContact);
}
+
+bool CVkProto::IsMessageExist(UINT MsgId)
+{
+ char szMid[40];
+ _itoa(MsgId, szMid, 10);
+
+ return (db_event_getById(m_szModuleName, szMid) != 0);
+}
\ No newline at end of file |