summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/transfers.cpp
diff options
context:
space:
mode:
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;