Skip to content
Snippets Groups Projects
Verified Commit 9e14218b authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix failed uploads not removing uploads

fixes #1098
parent 3eafd439
No related branches found
No related tags found
No related merge requests found
Pipeline #3236 passed
......@@ -1081,6 +1081,11 @@ InputBar::startUpload(std::unique_ptr<QIODevice> dev, const QString &orgPath, co
auto upload =
UploadHandle(new MediaUpload(std::move(dev), format, orgPath, room->isEncrypted(), this));
connect(upload.get(), &MediaUpload::uploadComplete, this, &InputBar::finalizeUpload);
// TODO(Nico): Show a retry option
connect(upload.get(), &MediaUpload::uploadFailed, this, [this](MediaUpload *up) {
ChatPage::instance()->showNotification(tr("Upload of '%1' failed").arg(up->filename()));
removeRunUpload(up);
});
unconfirmedUploads.push_back(std::move(upload));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment