summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-11 17:07:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-11 17:07:04 +0300
commit8f9292d483fcf3a10d9284512359c4562f5311eb (patch)
tree3593ca1eb6a5a4c3b2ef454fa6b4944d4b8da8c4 /plugins/Scriver/src
parent5f4f070347d20fc85b588138217aa744141e8053 (diff)
DB::FILE_BLOB - file events' access unification
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r--plugins/Scriver/src/msglog.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/plugins/Scriver/src/msglog.cpp b/plugins/Scriver/src/msglog.cpp
index f191432ba4..5bd6e406f7 100644
--- a/plugins/Scriver/src/msglog.cpp
+++ b/plugins/Scriver/src/msglog.cpp
@@ -108,17 +108,7 @@ EventData* CMsgDialog::GetEventFromDB(MCONTACT hContact, MEVENT hDbEvent)
else
evt->szNick.w = mir_wstrdup(Clist_GetContactDisplayName(hContact));
- if (evt->eventType == EVENTTYPE_FILE) {
- char *filename = ((char*)dbei.pBlob) + sizeof(uint32_t);
- char *descr = filename + mir_strlen(filename) + 1;
- evt->szText.w = DbEvent_GetString(&dbei, filename);
- if (*descr != 0) {
- ptrW wszDescr(DbEvent_GetString(&dbei, descr));
- CMStringW tmp(FORMAT, L"%s (%s)", evt->szText.w, wszDescr.get());
- replaceStrW(evt->szText.w, tmp.Detach());
- }
- }
- else evt->szText.w = DbEvent_GetTextW(&dbei, CP_UTF8);
+ evt->szText.w = DbEvent_GetTextW(&dbei, CP_UTF8);
if (!m_bUseRtl && Utils_IsRtl(evt->szText.w))
evt->dwFlags |= IEEDF_RTL;