From 9ea18ddc413a8c1eae6c32fe16e162a1998079c1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 25 Apr 2023 20:00:55 +0300 Subject: Telegram: offline files to be links from the very beginning --- protocols/JabberG/src/jabber_proto.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'protocols/JabberG/src/jabber_proto.cpp') diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index 9faee94630..7eac9947c8 100644 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -705,23 +705,6 @@ int CJabberProto::GetInfo(MCONTACT hContact, int /*infoType*/) return 0; } -//////////////////////////////////////////////////////////////////////////////////////// -// RecvFile - writes down an incoming file transfer to db - -MEVENT CJabberProto::RecvFile(MCONTACT hContact, PROTORECVFILE *pre) -{ - MEVENT hEvent = CSuper::RecvFile(hContact, pre); - if (hEvent) { - auto *ft = (filetransfer *)pre->lParam; - if (ft && ft->type == FT_HTTP && ft->httpPath) { - DBVARIANT dbv = { DBVT_UTF8 }; - dbv.pszVal = ft->httpPath; - db_event_setJson(hEvent, "u", &dbv); - } - } - return hEvent; -} - //////////////////////////////////////////////////////////////////////////////////////// // SearchBasic - searches the contact by JID -- cgit v1.2.3