summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2018-03-30 23:22:19 +0500
committerElzorFox <elzorfox@ya.ru>2018-03-30 23:22:32 +0500
commit98fccaa35ffef140c2bf284131aed2ebebda8269 (patch)
tree47a4c8437f7b34f88e3722e51032479d58cec6ab /protocols
parentf67bf4f191b394e9c061d0cd386309ad7be05331 (diff)
VKontakte:
fix perpetual loop version bump
Diffstat (limited to 'protocols')
-rw-r--r--protocols/VKontakte/src/misc.cpp10
-rw-r--r--protocols/VKontakte/src/version.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 39fb340e3b..959fe799fe 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -766,18 +766,18 @@ void CVkProto::MarkDialogAsRead(MCONTACT hContact)
if (userID == VK_INVALID_USER || userID == VK_FEED_USER)
return;
- MEVENT hDBEvent = 0;
+ MEVENT hDBEvent = db_event_firstUnread(hContact);
MCONTACT hMContact = db_mc_tryMeta(hContact);
- while ((hDBEvent = db_event_firstUnread(hContact)) != 0)
- {
+ while (hDBEvent != 0) {
DBEVENTINFO dbei = {};
- if (!db_event_get(hDBEvent, &dbei) && !mir_strcmp(m_szModuleName, dbei.szModule))
- {
+ if (!db_event_get(hDBEvent, &dbei) && !mir_strcmp(m_szModuleName, dbei.szModule)) {
db_event_markRead(hContact, hDBEvent);
pcli->pfnRemoveEvent(hMContact, hDBEvent);
if (hContact != hMContact)
pcli->pfnRemoveEvent(hContact, hDBEvent);
}
+
+ hDBEvent = db_event_next(hContact, hDBEvent);
}
}
diff --git a/protocols/VKontakte/src/version.h b/protocols/VKontakte/src/version.h
index 4851f5aa63..373caf19ac 100644
--- a/protocols/VKontakte/src/version.h
+++ b/protocols/VKontakte/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 1
#define __RELEASE_NUM 4
-#define __BUILD_NUM 3
+#define __BUILD_NUM 4
#include <stdver.h>