From 734e5c519a9850d180fd7c441c4cda1c053e8bfc Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Sun, 2 Apr 2017 00:25:31 +0500 Subject: VKontakte: more fix multiply loading history --- protocols/VKontakte/src/misc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'protocols/VKontakte/src/misc.cpp') 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; -- cgit v1.2.3