From cd4272ca22d47cdf673bfb0e5ec353acca3d9569 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 16 Jul 2022 21:23:06 +0300 Subject: Contact_IsGroupChat - a helper to detect chat rooms --- plugins/Import/src/import.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Import/src/import.cpp') diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp index a90a993b80..6fbfd074c0 100644 --- a/plugins/Import/src/import.cpp +++ b/plugins/Import/src/import.cpp @@ -98,7 +98,7 @@ MCONTACT CImportBatch::HContactFromID(const char *pszProtoName, const char *pszS MCONTACT CImportBatch::HContactFromChatID(const char *pszProtoName, const wchar_t *pszChatID) { for (MCONTACT hContact = dstDb->FindFirstContact(pszProtoName); hContact; hContact = dstDb->FindNextContact(hContact, pszProtoName)) { - if (!db_get_b(hContact, pszProtoName, "ChatRoom", 0)) + if (!Contact_IsGroupChat(hContact, pszProtoName)) continue; ptrW wszChatId(db_get_wsa(hContact, pszProtoName, "ChatRoomID")); -- cgit v1.2.3