summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-17 20:07:16 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-17 20:07:16 +0300
commitf43396cbff99cc7cc9410f12e55783ad12d1d2f7 (patch)
treeb2beeabe2b7df2d4ceeae92e20287d08b0675409 /src
parente0df536066a9299127ffe1f22530eaf7b401d0dc (diff)
Jabber:
- option autoloadoob removed due to offline files support; - added support for encrypted offline files
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/srmm_log_rtf.cpp13
1 files changed, 7 insertions, 6 deletions
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"));
- }
}
/////////////////////////////////////////////////////////////////////////////////////////