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/Variables/src/contact.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Variables/src') diff --git a/plugins/Variables/src/contact.cpp b/plugins/Variables/src/contact.cpp index 1eeb5e0d99..67f427d5bc 100644 --- a/plugins/Variables/src/contact.cpp +++ b/plugins/Variables/src/contact.cpp @@ -155,12 +155,12 @@ wchar_t* getContactInfoT(uint8_t type, MCONTACT hContact) break; case CNF_UNIQUEID: - //UID for ChatRoom - if (db_get_b(hContact, szProto, "ChatRoom", 0) == 1) + // UID for ChatRoom + if (Contact_IsGroupChat(hContact, szProto)) if ((res = db_get_wsa(hContact, szProto, "ChatRoomID")) != nullptr) return res; - //UID for other contact + // UID for other contact break; } -- cgit v1.2.3