diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-12-16 05:12:06 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-12-16 05:12:06 +0000 |
commit | f5718dda9247abb9e735fbf60e975d6d0662363a (patch) | |
tree | 8f4f278a74c66baece5b3fe0f03946468fcdb4b5 /protocols/VKontakte/src/vk_feed.cpp | |
parent | cba46ca020f4bd0336b5a8e32b603190c553599f (diff) |
VKontakte:
vk feeds support (wall) – part 2
version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@11443 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_feed.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_feed.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_feed.cpp b/protocols/VKontakte/src/vk_feed.cpp index d2d22e21bd..791c423d6b 100644 --- a/protocols/VKontakte/src/vk_feed.cpp +++ b/protocols/VKontakte/src/vk_feed.cpp @@ -22,8 +22,9 @@ static char* szImageTypes[] = { "photo_2560", "photo_1280", "photo_807", "photo_ void CVkProto::AddFeedSpecialUser()
{
- MCONTACT hContact = FindUser(VK_FEED_USER, m_bNewsEnabled);
- if (!m_bNewsEnabled) {
+ bool bSpecialContact = m_bNewsEnabled || m_bNotificationsEnabled;
+ MCONTACT hContact = FindUser(VK_FEED_USER, bSpecialContact);
+ if (!bSpecialContact) {
if (hContact)
CallService(MS_DB_CONTACT_DELETE, (WPARAM)hContact, 0);
return;
@@ -64,7 +65,7 @@ void CVkProto::AddFeedEvent(CMString& tszBody, time_t tTime) void CVkProto::RetrieveUnreadNews()
{
debugLogA("CVkProto::RetrieveUnreadNews");
- if (!IsOnline() || !m_bNewsEnabled)
+ if (!IsOnline() || !(m_bNewsEnabled || m_bNotificationsEnabled))
return;
time_t tLastNewsTime = getDword("LastNewsTime", time(NULL) - 24 * 60 * 60);
|