diff options
author | George Hazan <ghazan@miranda.im> | 2023-04-24 21:19:58 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-04-24 21:19:58 +0300 |
commit | 0326cb5ef24f96259316dd1b3f07f240e372c60e (patch) | |
tree | 25e12e484d6ce7d76f3ff08763d5a64dda64bcac | |
parent | df906f8fb5bcd4d5821e30ab1ba9d6f65344b013 (diff) |
fix for empty messages in group chats
-rw-r--r-- | src/mir_app/src/chat_log.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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;
}
}
|