Adapt to libQuotient API changes

This commit is contained in:
Tobias Fella
2022-05-30 14:23:29 +02:00
parent bd27904f17
commit dce4a409c7
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -23,5 +23,5 @@ const EventContent::ImageContent &StickerEvent::image() const
QUrl StickerEvent::url() const
{
return m_imageContent.url;
return m_imageContent.url();
}