From dce4a409c7aa707a305db1e2a1c584cb269d3f97 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Mon, 30 May 2022 14:23:29 +0200 Subject: [PATCH] Adapt to libQuotient API changes --- src/neochatroom.cpp | 2 +- src/stickerevent.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index 93db1dd37..a82510788 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -83,7 +83,7 @@ void NeoChatRoom::uploadFile(const QUrl &url, const QString &body) QString txnId = postFile(body.isEmpty() ? url.fileName() : body, url, false); setHasFileUploading(true); - connect(this, &Room::fileTransferCompleted, [this, txnId](const QString &id, const QUrl & /*localFile*/, const QUrl & /*mxcUrl*/) { + connect(this, &Room::fileTransferCompleted, [this, txnId](const QString &id, FileSourceInfo) { if (id == txnId) { setFileUploadingProgress(0); setHasFileUploading(false); diff --git a/src/stickerevent.cpp b/src/stickerevent.cpp index a0cc2d808..0ee65b7c6 100644 --- a/src/stickerevent.cpp +++ b/src/stickerevent.cpp @@ -23,5 +23,5 @@ const EventContent::ImageContent &StickerEvent::image() const QUrl StickerEvent::url() const { - return m_imageContent.url; + return m_imageContent.url(); }