From 7214936eaa1730a7cc733f41f4d31e08fe38b8ea Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Mon, 30 May 2022 14:41:00 +0200 Subject: [PATCH] Fix compilation against libQuotient 0.6 --- src/neochatroom.cpp | 4 ++++ src/stickerevent.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index b519aacd1..4c85f906c 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -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); diff --git a/src/stickerevent.cpp b/src/stickerevent.cpp index 0ee65b7c6..bcc9ff2b3 100644 --- a/src/stickerevent.cpp +++ b/src/stickerevent.cpp @@ -23,5 +23,9 @@ const EventContent::ImageContent &StickerEvent::image() const QUrl StickerEvent::url() const { +#ifdef QUOTIENT_07 return m_imageContent.url(); +#else + return m_imageContent.url; +#endif }