diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-21 20:36:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-21 20:36:56 +0300 |
commit | 286eb23094e65c80209cca5a029557e792010ec9 (patch) | |
tree | afd913f940e0afe445b73c76306dcdab0dab42e2 /src | |
parent | 6789591c27012d3dc37bcf5159724f95ca0657cd (diff) |
fix for users sorting in group chats
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/chat_manager.cpp | 1 | ||||
-rw-r--r-- | src/mir_app/src/chat_svc.cpp | 1 |
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;
|