summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-21 20:36:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-21 20:36:56 +0300
commit286eb23094e65c80209cca5a029557e792010ec9 (patch)
treeafd913f940e0afe445b73c76306dcdab0dab42e2 /src
parent6789591c27012d3dc37bcf5159724f95ca0657cd (diff)
fix for users sorting in group chats
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/chat_manager.cpp1
-rw-r--r--src/mir_app/src/chat_svc.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/chat_manager.cpp b/src/mir_app/src/chat_manager.cpp
index 1f2053110b..3552cf8e7d 100644
--- a/src/mir_app/src/chat_manager.cpp
+++ b/src/mir_app/src/chat_manager.cpp
@@ -696,6 +696,7 @@ USERINFO* UM_AddUser(STATUSINFO *pStatusList, SESSION_INFO *si, const wchar_t *p
USERINFO *node = new USERINFO();
replaceStrW(node->pszUID, pszUID);
+ replaceStrW(node->pszNick, pszNick);
node->Status = wStatus;
si->getUserList().insert(node);
return node;
diff --git a/src/mir_app/src/chat_svc.cpp b/src/mir_app/src/chat_svc.cpp
index fea2b786e5..2eeb134218 100644
--- a/src/mir_app/src/chat_svc.cpp
+++ b/src/mir_app/src/chat_svc.cpp
@@ -376,7 +376,6 @@ static void AddUser(GCEVENT *gce)
if (g_chatApi.OnAddUser)
g_chatApi.OnAddUser(si, ui);
- ui->pszNick = mir_wstrdup(gce->ptszNick);
if (gce->bIsMe)
si->pMe = ui;
ui->Status = status;