From ac7baf40736a9ff60b2a07d0310393f3aa33e610 Mon Sep 17 00:00:00 2001 From: Felanbird <41973452+Felanbird@users.noreply.github.com> Date: Sun, 6 Nov 2022 06:37:14 -0500 Subject: [PATCH] Add `is:reply` search predicate (#4119) Co-authored-by: Rasmus Karlsson --- CHANGELOG.md | 1 + src/messages/search/MessageFlagsPredicate.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25c7ed457..05c302843 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ - Minor: Added `is:elevated-msg` search option. (#4018) - Minor: Added `is:cheer-msg` search option. (#4069) - Minor: Added `is:redemption` search option. (#4118) +- Minor: Added `is:reply` search option. (#4119) - Minor: Added `subtier:` search option (e.g. `subtier:3` to find Tier 3 subs). (#4013) - Minor: Added `badge:` search option (e.g. `badge:mod` to users with the moderator badge). (#4013) - Minor: Added AutoMod message flag filter. (#3938) diff --git a/src/messages/search/MessageFlagsPredicate.cpp b/src/messages/search/MessageFlagsPredicate.cpp index a659d6347..84601a183 100644 --- a/src/messages/search/MessageFlagsPredicate.cpp +++ b/src/messages/search/MessageFlagsPredicate.cpp @@ -47,6 +47,10 @@ MessageFlagsPredicate::MessageFlagsPredicate(const QString &flags) this->flags_.set(MessageFlag::RedeemedChannelPointReward); this->flags_.set(MessageFlag::RedeemedHighlight); } + else if (flag == "reply") + { + this->flags_.set(MessageFlag::ReplyMessage); + } } }