diff options
Diffstat (limited to 'protocols/Telegram/src/proto.cpp')
-rw-r--r-- | protocols/Telegram/src/proto.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp index 763db665e9..79694ac08c 100644 --- a/protocols/Telegram/src/proto.cpp +++ b/protocols/Telegram/src/proto.cpp @@ -345,9 +345,10 @@ INT_PTR CTelegramProto::GetCaps(int type, MCONTACT) ///////////////////////////////////////////////////////////////////////////////////////// -MEVENT CTelegramProto::RecvFile(MCONTACT, PROTORECVFILE *) +MEVENT CTelegramProto::RecvFile(MCONTACT hContact, PROTORECVFILE *pre) { - return 0; + auto *ft = (TG_FILE_REQUEST *)pre->lParam; + return (ft->m_bRecv) ? CSuper::RecvFile(hContact, pre) : 0; } ///////////////////////////////////////////////////////////////////////////////////////// |