diff options
-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;
}
}
|