summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/transfers.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-03-11 21:29:25 +0300
committeraunsane <aunsane@gmail.com>2018-03-11 21:30:54 +0300
commit5532fd4e1374c15c13e203a89b7cd060c7e15499 (patch)
treec96b03c78f6c9be6dd365e8c83f30090c58e6e22 /plugins/CloudFile/src/transfers.cpp
parent30b4b861bc47eab24d3236879d50791871d5c90a (diff)
CloudFile should create Miranda NG folder instead of placing files into Yandex Disk root (fixed #1184)
Diffstat (limited to 'plugins/CloudFile/src/transfers.cpp')
-rw-r--r--plugins/CloudFile/src/transfers.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/CloudFile/src/transfers.cpp b/plugins/CloudFile/src/transfers.cpp
index c70dbcf33f..28ceede990 100644
--- a/plugins/CloudFile/src/transfers.cpp
+++ b/plugins/CloudFile/src/transfers.cpp
@@ -66,8 +66,16 @@ UINT UploadAndReportProgressThread(void *owner, void *arg)
FileTransferParam *ftp = (FileTransferParam*)arg;
int res = service->Upload(ftp);
- if (res == ACKRESULT_SUCCESS)
- service->Report(ftp->GetContact(), ftp->GetData());
+ if (res == ACKRESULT_SUCCESS) {
+ CMStringW data = ftp->GetDescription();
+ size_t linkCount;
+ auto links = ftp->GetSharedLinks(linkCount);
+ for (size_t i = 0; i < linkCount; i++) {
+ data.Append(ptrW(mir_utf8decodeW(links[i])));
+ data.AppendChar(0x0A);
+ }
+ service->Report(ftp->GetContact(), data);
+ }
Transfers.remove(ftp);
delete ftp;