mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Fix inclusion condition for overriden pack types
This commit is contained in:
parent
ea6b19b307
commit
0897e4c062
2 changed files with 1 additions and 3 deletions
|
@ -3591,7 +3591,7 @@ Cache::getImagePacks(const std::string &room_id, std::optional<bool> stickers)
|
||||||
for (const auto &img : pack.images) {
|
for (const auto &img : pack.images) {
|
||||||
if (stickers.has_value() &&
|
if (stickers.has_value() &&
|
||||||
(img.second.overrides_usage()
|
(img.second.overrides_usage()
|
||||||
? (!stickers.value() ? img.second.is_sticker() : img.second.is_emoji())
|
? (stickers.value() ? !img.second.is_sticker() : !img.second.is_emoji())
|
||||||
: !pack_matches))
|
: !pack_matches))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
@ -71,8 +71,6 @@ CompletionProxyModel::CompletionProxyModel(QAbstractItemModel *model,
|
||||||
&CompletionProxyModel::newSearchString,
|
&CompletionProxyModel::newSearchString,
|
||||||
this,
|
this,
|
||||||
[this](QString s) {
|
[this](QString s) {
|
||||||
s.remove(":");
|
|
||||||
s.remove("@");
|
|
||||||
searchString_ = s.toLower();
|
searchString_ = s.toLower();
|
||||||
invalidate();
|
invalidate();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue