Adapt to libQuotient API changes
This commit is contained in:
@@ -83,7 +83,7 @@ void NeoChatRoom::uploadFile(const QUrl &url, const QString &body)
|
|||||||
|
|
||||||
QString txnId = postFile(body.isEmpty() ? url.fileName() : body, url, false);
|
QString txnId = postFile(body.isEmpty() ? url.fileName() : body, url, false);
|
||||||
setHasFileUploading(true);
|
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) {
|
if (id == txnId) {
|
||||||
setFileUploadingProgress(0);
|
setFileUploadingProgress(0);
|
||||||
setHasFileUploading(false);
|
setHasFileUploading(false);
|
||||||
|
|||||||
@@ -23,5 +23,5 @@ const EventContent::ImageContent &StickerEvent::image() const
|
|||||||
|
|
||||||
QUrl StickerEvent::url() const
|
QUrl StickerEvent::url() const
|
||||||
{
|
{
|
||||||
return m_imageContent.url;
|
return m_imageContent.url();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user