From f43396cbff99cc7cc9410f12e55783ad12d1d2f7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 17 Apr 2023 20:07:16 +0300 Subject: Jabber: - option autoloadoob removed due to offline files support; - added support for encrypted offline files --- src/mir_app/src/srmm_log_rtf.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/srmm_log_rtf.cpp b/src/mir_app/src/srmm_log_rtf.cpp index b38eb0f4eb..512f4d3344 100644 --- a/src/mir_app/src/srmm_log_rtf.cpp +++ b/src/mir_app/src/srmm_log_rtf.cpp @@ -143,7 +143,13 @@ void CRtfLogWindow::InsertFileLink(CMStringA &buf, MEVENT hEvent, const DB::FILE buf.AppendFormat("ofile:%ul", hEvent); buf.Append("\"}{\\fldrslt{\\ul "); AppendUnicodeString(buf, blob.getName()); - buf.AppendFormat("}}} | %uKB", blob.getSize() / 1024); + buf.AppendFormat("}}}"); + + if (blob.getSize() > 0 && blob.getSize() == blob.getTransferred()) + buf.Append(" \\u10004? "); + + if (uint32_t size = blob.getSize()) + buf.AppendFormat(" %uKB", size < 1024 ? 1 : blob.getSize() / 1024); CMStringA szHost; if (const char *b = strstr(blob.getUrl(), "://")) @@ -152,11 +158,6 @@ void CRtfLogWindow::InsertFileLink(CMStringA &buf, MEVENT hEvent, const DB::FILE if (!szHost.IsEmpty()) buf.AppendFormat(" on %s", szHost.c_str()); - - if (blob.getSize() > 0 && blob.getSize() == blob.getTransferred()) { - buf.AppendChar(' '); - AppendUnicodeString(buf, TranslateT("Completed")); - } } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3