mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +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) {
|
||||
if (stickers.has_value() &&
|
||||
(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))
|
||||
continue;
|
||||
|
||||
|
|
|
@ -71,8 +71,6 @@ CompletionProxyModel::CompletionProxyModel(QAbstractItemModel *model,
|
|||
&CompletionProxyModel::newSearchString,
|
||||
this,
|
||||
[this](QString s) {
|
||||
s.remove(":");
|
||||
s.remove("@");
|
||||
searchString_ = s.toLower();
|
||||
invalidate();
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue