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(); }