summaryrefslogtreecommitdiff
path: root/protocols/MRA/src/Mra_functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/MRA/src/Mra_functions.cpp')
-rw-r--r--protocols/MRA/src/Mra_functions.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/MRA/src/Mra_functions.cpp b/protocols/MRA/src/Mra_functions.cpp
index 8d3c419bd8..66d71e5966 100644
--- a/protocols/MRA/src/Mra_functions.cpp
+++ b/protocols/MRA/src/Mra_functions.cpp
@@ -414,9 +414,14 @@ DWORD CMraProto::SetContactBasicInfoW(HANDLE hContact, DWORD dwSetInfoFlags, DWO
mraSetStringExA(hContact, "e-mail", *szEmail);
// поля изменения которых отслеживаются
- if (dwFlags & SCBIF_GROUP_ID)
+ if (dwFlags & SCBIF_GROUP_ID) {
setDword(hContact, "GroupID", dwGroupID);
+ MraGroupItem *grp = m_groups.find((MraGroupItem*)&dwGroupID);
+ if (grp)
+ db_set_ts(hContact, "CList", "Group", grp->m_name);
+ }
+
if ((dwFlags & SCBIF_NICK) && wszNick != NULL && !wszNick->IsEmpty()) {
if ((dwFlags & SCBIF_FLAG) && ((dwContactFlag & CONTACT_FLAG_UNICODE_NAME) == 0))
DB_SetStringExA(hContact, "CList", "MyHandle", CMStringA(*wszNick));