diff options
-rw-r--r-- | src/mir_app/src/chat_manager.cpp | 2 |
1 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 0a89030837..ce6af63eee 100644 --- a/src/mir_app/src/chat_manager.cpp +++ b/src/mir_app/src/chat_manager.cpp @@ -715,11 +715,11 @@ USERINFO* UM_AddUser(SESSION_INFO *si, const wchar_t *pszUID, const wchar_t *psz auto *pUser = UM_FindUser(si, pszUID);
if (pUser == nullptr) {
pUser = new USERINFO();
+ replaceStrW(pUser->pszUID, pszUID);
si->getKeyList().insert(pUser);
si->getUserList().insert(pUser);
}
- replaceStrW(pUser->pszUID, pszUID);
replaceStrW(pUser->pszNick, pszNick);
pUser->Status = wStatus;
return pUser;
|