diff options
author | ElzorFox <elzorfox@ya.ru> | 2017-04-02 00:25:31 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2017-04-02 00:25:31 +0500 |
commit | 734e5c519a9850d180fd7c441c4cda1c053e8bfc (patch) | |
tree | e5b74418ee6f7879ec7f377e6e4485298cf01511 /protocols/VKontakte/src/misc.cpp | |
parent | a8007991b6f8f5381dd290b44fdcf346f68f48b3 (diff) |
VKontakte: more fix multiply loading history
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 975e3c141a..6e59629fd9 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -719,7 +719,10 @@ int CVkProto::OnProcessSrmmEvent(WPARAM, LPARAM lParam) if (event->uType == MSG_WINDOW_EVT_OPENING && m_vkOptions.bLoadLastMessageOnMsgWindowsOpen
&& !isChatRoom(event->hContact) && IsHystoryMessageExist(event->hContact) != 1) {
m_bNotifyForEndLoadingHistory = false;
- GetServerHistory(event->hContact, 0, MAXHISTORYMIDSPERONE, 0, 0, true);
+ if (!getBool(event->hContact, "ActiveHistoryTask")) {
+ setByte(event->hContact, "ActiveHistoryTask", 1);
+ GetServerHistory(event->hContact, 0, MAXHISTORYMIDSPERONE, 0, 0, true);
+ }
}
return 0;
|