diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-07-03 19:45:53 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-07-03 19:45:53 +0000 |
commit | aa312e59cd0065e20ffdf78cd49811ba0520c0bd (patch) | |
tree | 2a098fa7c69c2868a801d1acb8f2842c4e37dcfe /protocols/Skype/src/skype_transfers.cpp | |
parent | 8ec882fcf4a57256daa439d85d29fcbf3a1d06af (diff) |
Skype:
- fixed files(contacts) sending in conference (issue #397)
- fixes in contacts blocking
- some small fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@5223 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_transfers.cpp')
-rw-r--r-- | protocols/Skype/src/skype_transfers.cpp | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/protocols/Skype/src/skype_transfers.cpp b/protocols/Skype/src/skype_transfers.cpp index e891be18c3..b3edeeba1a 100644 --- a/protocols/Skype/src/skype_transfers.cpp +++ b/protocols/Skype/src/skype_transfers.cpp @@ -26,7 +26,10 @@ void CSkypeProto::OnTransferChanged(const TransferRef &transfer, int prop) Transfer::FAILUREREASON reason;
- uint oid = transfer->getOID();
+ MessageRef msgRef;
+ this->GetMessageByGuid(guid, msgRef);
+
+ uint oid = msgRef->getOID();
SEString data;
transfer->GetPropPartnerHandle(data);
@@ -40,24 +43,24 @@ void CSkypeProto::OnTransferChanged(const TransferRef &transfer, int prop) break;*/
/*case CTransfer::WAITING_FOR_ACCEPT:
break;*/
- case CTransfer::CONNECTING:
+ case Transfer::CONNECTING:
this->SendBroadcast(hContact, ACKTYPE_FILE, ACKRESULT_CONNECTING, (HANDLE)oid, 0);
break;
- case CTransfer::TRANSFERRING:
- case CTransfer::TRANSFERRING_OVER_RELAY:
+ case Transfer::TRANSFERRING:
+ case Transfer::TRANSFERRING_OVER_RELAY:
this->SendBroadcast(hContact, ACKTYPE_FILE, ACKRESULT_CONNECTED, (HANDLE)oid, 0);
break;
- case CTransfer::FAILED:
+ case Transfer::FAILED:
transfer->GetPropFailurereason(reason);
this->SendBroadcast(hContact, ACKTYPE_FILE, ACKRESULT_FAILED, (HANDLE)oid, (LPARAM)CSkypeProto::TransferFailureReasons[reason]);
this->transferList.remove_val(transfer);
break;
- case CTransfer::COMPLETED:
+ case Transfer::COMPLETED:
this->SendBroadcast(hContact, ACKTYPE_FILE, ACKRESULT_SUCCESS, (HANDLE)oid, 0);
this->transferList.remove_val(transfer);
break;
- case CTransfer::CANCELLED:
- case CTransfer::CANCELLED_BY_REMOTE:
+ case Transfer::CANCELLED:
+ case Transfer::CANCELLED_BY_REMOTE:
transfer->GetPropFailurereason(reason);
this->SendBroadcast(hContact, ACKTYPE_FILE, ACKRESULT_DENIED, (HANDLE)oid, (LPARAM)CSkypeProto::TransferFailureReasons[reason]);
this->transferList.remove_val(transfer);
@@ -73,7 +76,10 @@ void CSkypeProto::OnTransferChanged(const TransferRef &transfer, int prop) SEBinary guid;
transfer->GetPropChatmsgGuid(guid);
- uint oid = transfer->getOID();
+ MessageRef msgRef;
+ this->GetMessageByGuid(guid, msgRef);
+
+ uint oid = msgRef->getOID();
PROTOFILETRANSFERSTATUS pfts = {0};
pfts.cbSize = sizeof(pfts);
|