summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram/src/proto.cpp')
-rw-r--r--protocols/Telegram/src/proto.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp
index 172b299ebc..a8f36fbe2e 100644
--- a/protocols/Telegram/src/proto.cpp
+++ b/protocols/Telegram/src/proto.cpp
@@ -278,26 +278,6 @@ INT_PTR CTelegramProto::GetCaps(int type, MCONTACT)
}
}
-////////////////////////////////////////////////////////////////////////////////////////
-// RecvFile - writes down an incoming file transfer to db
-
-MEVENT CTelegramProto::RecvFile(MCONTACT hContact, PROTORECVFILE *pre)
-{
- MEVENT hEvent = CSuper::RecvFile(hContact, pre);
- if (hEvent) {
- if (auto *ft = (TG_FILE_REQUEST *)pre->lParam) {
- DBVARIANT dbv = { DBVT_UTF8 };
- dbv.pszVal = ft->m_uniqueId.GetBuffer();
- db_event_setJson(hEvent, "u", &dbv);
-
- dbv.type = DBVT_DWORD;
- dbv.dVal = ft->m_fileId;
- db_event_setJson(hEvent, "id", &dbv);
- }
- }
- return hEvent;
-}
-
/////////////////////////////////////////////////////////////////////////////////////////
void CTelegramProto::OnSearchResults(td::ClientManager::Response &response)