Fix only first 7 stickers showing up

This commit is contained in:
Nicolas Werner 2021-07-19 12:43:16 +02:00
parent 56b44a85b5
commit 9f416f1fc9
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 8 additions and 6 deletions

View file

@ -23,11 +23,7 @@ public:
ImagePackModel(const std::string &roomId, bool stickers, QObject *parent = nullptr);
QHash<int, QByteArray> roleNames() const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override
{
(void)parent;
return (int)images.size();
}
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role) const override;
mtx::events::msc2545::PackImage imageAt(int row)