summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_feed.cpp
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-01-11 01:18:09 +0500
committerElzorFox <elzorfox@ya.ru>2017-01-11 01:18:09 +0500
commit7aed63a94c430094a66006ed459bfb8cbd7ff5f2 (patch)
treec4df980c9d3522134bfdc8e18700a8c93af8c9c3 /protocols/VKontakte/src/vk_feed.cpp
parent83402fe2934d403c8d3a436baed5261cd315dc85 (diff)
Revert "VKontakte: no more write to db if oldValue == newValue"
This reverts commit 77cccf9d4b13d9fad437eaf6361cec016a4ce27c.
Diffstat (limited to 'protocols/VKontakte/src/vk_feed.cpp')
-rw-r--r--protocols/VKontakte/src/vk_feed.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_feed.cpp b/protocols/VKontakte/src/vk_feed.cpp
index 85dcdd5343..ac23773168 100644
--- a/protocols/VKontakte/src/vk_feed.cpp
+++ b/protocols/VKontakte/src/vk_feed.cpp
@@ -40,8 +40,10 @@ void CVkProto::AddFeedSpecialUser()
setWString(hContact, "Homepage", L"https://vk.com/feed");
}
- DBSetWord(hContact, "Status", ID_STATUS_ONLINE, ID_STATUS_OFFLINE);
+ if (getWord(hContact, "Status") != ID_STATUS_ONLINE)
+ setWord(hContact, "Status", ID_STATUS_ONLINE);
SetMirVer(hContact, 7);
+
}
void CVkProto::AddFeedEvent(CVKNewsItem& vkNewsItem)