summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-31 14:29:39 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-31 14:29:39 +0300
commita361d9f21658ac0baa0b91bccb6d4261f096fe46 (patch)
tree1c415cf5d853c358cfb1268f77eac2d9392f5bf3
parentd548483a33e229d3c6938be4d7f13b54c9981d8a (diff)
fixes #4151 (ICQ: Проблемы с цитатами не ушли.)
-rw-r--r--protocols/ICQ-WIM/src/server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp
index b9aa8ad77f..945ab57ba3 100644
--- a/protocols/ICQ-WIM/src/server.cpp
+++ b/protocols/ICQ-WIM/src/server.cpp
@@ -600,6 +600,7 @@ void CIcqProto::ParseMessage(MCONTACT hContact, __int64 &lastMsgId, const JSONNo
auto *pszShortName = (p == nullptr) ? pFileInfo->szUrl.c_str() : p + 1;
DB::EventInfo dbei(hOldEvent);
+ dbei.eventType = EVENTTYPE_FILE;
dbei.flags = DBEF_TEMPORARY;
dbei.szId = szMsgId;
dbei.timestamp = iMsgTime;
@@ -675,6 +676,10 @@ void CIcqProto::ParseMessagePart(MCONTACT hContact, const JSONNode &part, IcqFil
if (!wszDescr.IsEmpty())
pFileInfo->wszDescr = wszDescr;
}
+ else {
+ auto wszText = part["text"].as_mstring();
+ CheckFile(hContact, wszText, pFileInfo);
+ }
}
bool CIcqProto::RefreshRobustToken(AsyncHttpRequest *pOrigReq)