diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-08-06 04:31:30 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-08-06 04:31:53 +0200 |
commit | e5a6b2b6efcb56072146aad5996132070f9c2078 (patch) | |
tree | 7d3385d3dd5cf0dea9152538fa59c03693d9b932 /src/Cache.cpp | |
parent | Allow uploading additional stickers (diff) | |
download | nheko-e5a6b2b6efcb56072146aad5996132070f9c2078.tar.xz |
Allow creating new packs
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r-- | src/Cache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp index f3f3dbb6..6650334a 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -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; |