summaryrefslogtreecommitdiff
path: root/src/mir_app/src/chat_svc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_app/src/chat_svc.cpp')
-rw-r--r--src/mir_app/src/chat_svc.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mir_app/src/chat_svc.cpp b/src/mir_app/src/chat_svc.cpp
index 2a09052ef1..c5ca2b9255 100644
--- a/src/mir_app/src/chat_svc.cpp
+++ b/src/mir_app/src/chat_svc.cpp
@@ -550,8 +550,13 @@ EXTERN_C MIR_APP_DLL(int) Chat_Event(GCEVENT *gce)
return 0;
if (si && (si->bInitDone || gcd->iType == GC_EVENT_TOPIC || (gcd->iType == GC_EVENT_JOIN && gce->bIsMe))) {
+ if (gce->ptszNick == nullptr && gce->ptszUID != nullptr) {
+ USERINFO *ui = chatApi.UM_FindUser(si->pUsers, gce->ptszUID);
+ if (ui != nullptr)
+ gce->ptszNick = ui->pszNick;
+ }
+
int isOk = SM_AddEvent(pWnd, pMod, gce, bIsHighlighted);
-
if (si->hWnd) {
if (isOk)
SendMessage(si->hWnd, GC_ADDLOG, 0, 0);