From 010952c5c2dde278a024f6876e8189b949ea5dcf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Jan 2024 15:44:57 +0300 Subject: the ancient atavism extincted: PROTORECVFILE structure with its own set of flags --- protocols/JabberG/src/jabber_iq_handlers.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'protocols/JabberG/src/jabber_iq_handlers.cpp') diff --git a/protocols/JabberG/src/jabber_iq_handlers.cpp b/protocols/JabberG/src/jabber_iq_handlers.cpp index d7abb95ff2..1dd1dd43c6 100644 --- a/protocols/JabberG/src/jabber_iq_handlers.cpp +++ b/protocols/JabberG/src/jabber_iq_handlers.cpp @@ -323,14 +323,9 @@ bool CJabberProto::OnIqRequestOOB(const TiXmlElement*, CJabberIqInfo *pInfo) else str2 = ft->httpPath; - PROTORECVFILE pre = {}; - pre.dwFlags = PRFF_UTF; - pre.timestamp = time(0); - pre.descr.a = desc; - pre.files.a = &str2; - pre.fileCount = 1; - pre.pUserInfo = ft; - ProtoChainRecvFile(ft->std.hContact, &pre); + DB::EventInfo dbei; + dbei.timestamp = time(0); + ProtoChainRecvFile(ft->std.hContact, DB::FILE_BLOB(ft, str2, desc), dbei); } else { // reject XmlNodeIq iq("error", pInfo); -- cgit v1.2.3