From 610cc3376a2b7e24542594be4899b1dd9ebd7d66 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Mar 2024 16:12:59 +0300 Subject: fixes #4306 (NewStory: group chat messages visualization) --- src/mir_app/src/chat_log.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/mir_app/src/chat_log.cpp b/src/mir_app/src/chat_log.cpp index 32bd10bcc3..1068dcff2d 100644 --- a/src/mir_app/src/chat_log.cpp +++ b/src/mir_app/src/chat_log.cpp @@ -52,20 +52,20 @@ MIR_APP_DLL(bool) Chat_GetDefaultEventDescr(const SESSION_INFO *si, const LOGINF case GC_EVENT_JOIN: if (!lin->bIsMe) { if (!wszNick.IsEmpty()) - res.AppendFormat(TranslateT("%s has joined"), wszNick.c_str()); + res.AppendFormat(TranslateT("%s has joined %s"), wszNick.c_str(), si->ptszName); } else res.AppendFormat(TranslateT("You have joined %s"), si->ptszName); - break; + return true; case GC_EVENT_PART: if (!wszNick.IsEmpty()) - res.AppendFormat(TranslateT("%s has left"), wszNick.c_str()); - break; + res.AppendFormat(TranslateT("%s has left %s"), wszNick.c_str(), si->ptszName); + return true; case GC_EVENT_QUIT: if (!wszNick.IsEmpty()) res.AppendFormat(TranslateT("%s has disconnected"), wszNick.c_str()); - break; + return true; case GC_EVENT_NICK: if (!lin->bIsMe) { -- cgit v1.2.3