diff options
author | ElzorFox <elzorfox@ya.ru> | 2017-01-23 13:42:53 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2017-01-23 13:42:53 +0500 |
commit | 705649686832a6e12d7eea59e20528a7e61abe14 (patch) | |
tree | e093abc6ffe2ca6ebe822b6f2fffac12ea3bef87 /protocols/VKontakte/src/vk_struct.cpp | |
parent | f7bbe11df6dc63ca32e7599a4bd64ea95990065d (diff) |
VKontakte:
rename option ‘Automatically wipe local contacts missing in your friend list’ ->’ Load only friends to local contact list’
rework loading clist logic (now if option ‘ Load only friends to local contact list’ is true, non-friends contact are not created on loading dialogs and are not cleaned automatically on loading friendlist)
version bump
Diffstat (limited to 'protocols/VKontakte/src/vk_struct.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_struct.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_struct.cpp b/protocols/VKontakte/src/vk_struct.cpp index ec7531c212..67eec095fa 100644 --- a/protocols/VKontakte/src/vk_struct.cpp +++ b/protocols/VKontakte/src/vk_struct.cpp @@ -167,7 +167,7 @@ CVkChatUser* CVkChatInfo::GetUserById(int user_id) /////////////////////////////////////////////////////////////////////////////////////////
CVKOptions::CVKOptions(PROTO_INTERFACE *proto) :
- bAutoClean(proto, "AutoClean", false),
+ bLoadOnlyFriends(proto, "LoadOnlyFriends", false),
bServerDelivery(proto, "BsDirect", true),
bHideChats(proto, "HideChats", true),
bMesAsUnread(proto, "MesAsUnread", false),
@@ -239,4 +239,12 @@ CVKOptions::CVKOptions(PROTO_INTERFACE *proto) : pwszVKLang(proto, "VKLang", NULL)
{
+ // Note: Delete this code after next stable build
+ int iAutoClean = db_get_b(NULL, proto->m_szModuleName, "AutoClean", -1);
+ if (iAutoClean != -1) {
+ bLoadOnlyFriends = (BYTE) iAutoClean;
+ db_set_b(NULL, proto->m_szModuleName, "LoadOnlyFriends", bLoadOnlyFriends);
+ db_unset(NULL, proto->m_szModuleName, "AutoClean");
+ }
+ // Note
}
|