summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_app/src/srmm_base.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp
index 8c520380f2..c202986930 100644
--- a/src/mir_app/src/srmm_base.cpp
+++ b/src/mir_app/src/srmm_base.cpp
@@ -729,10 +729,6 @@ void CSrmmBaseDialog::UpdateChatLog()
for (MEVENT hDbEvent = m_hDbEventFirst; hDbEvent; hDbEvent = db_event_next(m_hContact, hDbEvent)) {
DB::EventInfo dbei(hDbEvent);
if (dbei && !mir_strcmp(szProto, dbei.szModule) && g_chatApi.DbEventIsShown(dbei) && dbei.szUserId) {
- auto *pUser = g_chatApi.UM_FindUser(m_si, Utf2T(dbei.szUserId));
- if (pUser == nullptr)
- continue;
-
Utf2T wszUserId(dbei.szUserId);
CMStringW wszText(ptrW(DbEvent_GetTextW(&dbei)));
wszText.Replace(L"%", L"%%");
@@ -746,6 +742,8 @@ void CSrmmBaseDialog::UpdateChatLog()
if (USERINFO *ui = g_chatApi.UM_FindUser(m_si, wszUserId))
gce.pszNick.w = ui->pszNick;
+ else
+ gce.pszNick.w = wszUserId;
SM_AddEvent(m_si, &gce, false);
}
}