diff options
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/chat_tools.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mir_app/src/chat_tools.cpp b/src/mir_app/src/chat_tools.cpp index e20d917ee6..b9d2016103 100644 --- a/src/mir_app/src/chat_tools.cpp +++ b/src/mir_app/src/chat_tools.cpp @@ -743,10 +743,12 @@ void Chat_EventToGC(SESSION_INFO *si, MEVENT hDbEvent) gce.dwFlags |= GCEF_NOTNOTIFY;
Utf2T wszUserId(dbei.szUserId);
- if (g_chatApi.UM_FindUser(si, wszUserId))
+ if (auto *pUser = g_chatApi.UM_FindUser(si, wszUserId)) {
gce.pszUID.w = wszUserId;
- else
- gce.pszNick.w = wszUserId;
+ gce.pszNick.w = pUser->pszNick;
+ }
+ else gce.pszNick.w = wszUserId;
+
gce.pszText.w = wszText;
gce.time = dbei.timestamp;
gce.hEvent = hDbEvent;
|