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

@ -3401,7 +3401,7 @@ Cache::getImagePacks(const std::string &room_id, std::optional<bool> stickers)
info.pack.pack = pack.pack;
for (const auto &img : pack.images) {
if (img.second.overrides_usage() &&
if (stickers.has_value() && img.second.overrides_usage() &&
(stickers ? !img.second.is_sticker() : !img.second.is_emoji()))
continue;