diff options
author | George Hazan <ghazan@miranda.im> | 2023-02-17 17:03:07 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-02-17 17:03:07 +0300 |
commit | 8ffa00861ad0c00bcb11a7f90d91c38940d4d62b (patch) | |
tree | 293f9b39aefe43de2884e8c4e4d54d9a515e04be | |
parent | 2ad758d4602a37e7a0ce2016a452ed769553437f (diff) |
fix for duplicated VK chats
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 1 | ||||
-rw-r--r-- | src/mir_app/src/chat_clist.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 351dbebe48..5b5a548350 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -125,6 +125,7 @@ void CVkProto::CheckUpdate() if (userId != VK_INVALID_USER) {
setDword(cc, "ID", userId);
delSetting(cc, "vk_chat_id");
+ delSetting(cc, "ChatRoomID");
}
}
setByte("Compatibility", 1);
diff --git a/src/mir_app/src/chat_clist.cpp b/src/mir_app/src/chat_clist.cpp index 3981986acd..2246219438 100644 --- a/src/mir_app/src/chat_clist.cpp +++ b/src/mir_app/src/chat_clist.cpp @@ -72,7 +72,7 @@ MCONTACT AddRoom(const char *pszModule, const wchar_t *pszRoom, const wchar_t *p if (auto *pa = Proto_GetAccount(pszModule)) {
if (MBaseProto *pd = g_arProtos.find((MBaseProto *)&pa->szProtoName)) {
if (pd->iUniqueIdType == DBVT_DWORD)
- db_set_w(hContact, pszModule, pd->szUniqueId, _wtoi(pszRoom));
+ db_set_dw(hContact, pszModule, pd->szUniqueId, _wtoi(pszRoom));
else
db_set_ws(hContact, pszModule, pd->szUniqueId, pszRoom);
}
|