aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2022-05-19 14:32:38 +0200
committerTobias Fella <fella@posteo.de>2022-05-19 14:32:56 +0200
commit7b0de6473b6e23f1d74e7ad5739ad86c6b243797 (patch)
tree621874e216c48c6dfda186bd16b0ef9cd5ba5a1a /lib/room.cpp
parent146c2f73a22be32033a4999fd722cb92dcdf3c2f (diff)
downloadlibquotient-7b0de6473b6e23f1d74e7ad5739ad86c6b243797.tar.gz
libquotient-7b0de6473b6e23f1d74e7ad5739ad86c6b243797.zip
Apply Suggestions
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 7a3c66b6..e0494f83 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -2551,7 +2551,7 @@ void Room::uploadFile(const QString& id, const QUrl& localFilename,
file.url = QUrl(job->contentUri());
emit fileTransferCompleted(id, localFilename, QUrl(job->contentUri()), file);
} else {
- emit fileTransferCompleted(id, localFilename, QUrl(job->contentUri()));
+ emit fileTransferCompleted(id, localFilename, QUrl(job->contentUri()), none);
}
});
connect(job, &BaseJob::failure, this,
@@ -2620,7 +2620,7 @@ void Room::downloadFile(const QString& eventId, const QUrl& localFilename)
connect(job, &BaseJob::success, this, [this, eventId, fileUrl, job] {
d->fileTransfers[eventId].status = FileTransferInfo::Completed;
emit fileTransferCompleted(
- eventId, fileUrl, QUrl::fromLocalFile(job->targetFileName()));
+ eventId, fileUrl, QUrl::fromLocalFile(job->targetFileName()), none);
});
connect(job, &BaseJob::failure, this,
std::bind(&Private::failedTransfer, d, eventId,