From 0326cb5ef24f96259316dd1b3f07f240e372c60e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 24 Apr 2023 21:19:58 +0300 Subject: fix for empty messages in group chats --- src/mir_app/src/chat_log.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mir_app/src/chat_log.cpp b/src/mir_app/src/chat_log.cpp index 5ec5afe834..a0ea5cdd25 100644 --- a/src/mir_app/src/chat_log.cpp +++ b/src/mir_app/src/chat_log.cpp @@ -315,11 +315,12 @@ void CRtfLogWindow::CreateChatRtfMessage(RtfChatLogStreamData *streamData, const if (dbei) { if (dbei.eventType == EVENTTYPE_FILE) { DB::FILE_BLOB blob(dbei); - if (blob.isOffline()) + if (blob.isOffline()) { InsertFileLink(buf, lin.hEvent, blob); - else - lin.write(streamData, false, buf, ptrW(DbEvent_GetTextW(&dbei, CP_UTF8))); + return; + } } + lin.write(streamData, false, buf, ptrW(DbEvent_GetTextW(&dbei, CP_UTF8))); return; } } -- cgit v1.2.3