Fix inclusion condition for overriden pack types

pull/858/head
Nicolas Werner 3 years ago
parent ea6b19b307
commit 0897e4c062
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      src/Cache.cpp
  2. 2
      src/CompletionProxyModel.cpp

@ -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…
Cancel
Save