summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-24 13:41:41 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-24 13:41:41 +0300
commit7a11ce58becfc750e5b4a9bb07102f8d334bbcf6 (patch)
treed8d28c73c4f3c5b5953b7785e374e38e89de7580 /protocols/Telegram/src/proto.cpp
parentcce43e30dca000d713131a87ddd78265d71eb763 (diff)
Telegram: silent file transfers don't require f/t manager, but simply create offline events
Diffstat (limited to 'protocols/Telegram/src/proto.cpp')
-rw-r--r--protocols/Telegram/src/proto.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp
index 11bed96d85..172b299ebc 100644
--- a/protocols/Telegram/src/proto.cpp
+++ b/protocols/Telegram/src/proto.cpp
@@ -278,38 +278,6 @@ INT_PTR CTelegramProto::GetCaps(int type, MCONTACT)
}
}
-/////////////////////////////////////////////////////////////////////////////////////////
-
-HANDLE CTelegramProto::FileAllow(MCONTACT, HANDLE hTransfer, const wchar_t *pwszSavePath)
-{
- auto *ft = (TG_FILE_REQUEST *)hTransfer;
- if (ft == nullptr)
- return nullptr;
-
- ft->m_destPath = pwszSavePath;
- ft->pfts.szCurrentFile.w = ft->m_fileName.GetBuffer();
- ft->pfts.szWorkingDir.w = ft->m_destPath.GetBuffer();
- SendQuery(new TD::downloadFile(ft->m_fileId, 5, 0, 0, false));
- return ft;
-}
-
-int CTelegramProto::FileCancel(MCONTACT, HANDLE hTransfer)
-{
- auto *ft = (TG_FILE_REQUEST *)hTransfer;
- delete ft;
- return 1;
-}
-
-int CTelegramProto::FileResume(HANDLE hTransfer, int, const wchar_t *pwszFilename)
-{
- auto *ft = (TG_FILE_REQUEST *)hTransfer;
- if (ft == nullptr)
- return 1;
-
- ft->m_destPath = pwszFilename;
- return 0;
-}
-
////////////////////////////////////////////////////////////////////////////////////////
// RecvFile - writes down an incoming file transfer to db