Allow creating new packs

This commit is contained in:
Nicolas Werner 2021-08-06 04:31:30 +02:00
parent 16d0190f4e
commit e5a6b2b6ef
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
6 changed files with 58 additions and 6 deletions

View file

@ -15,7 +15,7 @@
#include "timeline/Permissions.h"
#include "timeline/TimelineModel.h"
Q_DECLARE_METATYPE(mtx::common::ImageInfo);
Q_DECLARE_METATYPE(mtx::common::ImageInfo)
SingleImagePackModel::SingleImagePackModel(ImagePackInfo pack_, QObject *parent)
: QAbstractListModel(parent)
@ -285,6 +285,8 @@ SingleImagePackModel::save()
ChatPage::instance()->showNotification(
tr("Failed to update image pack: {}")
.arg(QString::fromStdString(e->matrix_error.error)));
nhlog::net()->info("Uploaded image pack: {}", statekey_);
});
}
}