Fix compilation against libQuotient 0.6

This commit is contained in:
Tobias Fella
2022-05-30 14:41:00 +02:00
parent 5a7c3295dc
commit 7214936eaa
2 changed files with 8 additions and 0 deletions

View File

@@ -83,7 +83,11 @@ void NeoChatRoom::uploadFile(const QUrl &url, const QString &body)
QString txnId = postFile(body.isEmpty() ? url.fileName() : body, url, false);
setHasFileUploading(true);
#ifdef QUOTIENT_07
connect(this, &Room::fileTransferCompleted, [this, txnId](const QString &id, FileSourceInfo) {
#else
connect(this, &Room::fileTransferCompleted, [this, txnId](const QString &id, const QUrl & /*localFile*/, const QUrl & /*mxcUrl*/) {
#endif
if (id == txnId) {
setFileUploadingProgress(0);
setHasFileUploading(false);