Add is:elevated-msg search predicate (#4018)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Felanbird 2022-10-01 07:01:54 -04:00 committed by GitHub
parent 9e722d05e9
commit d024a1ef7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -17,6 +17,7 @@
- Minor: Added `Go to message` context menu action to search popup, mentions, usercard and reply threads. (#3953) - Minor: Added `Go to message` context menu action to search popup, mentions, usercard and reply threads. (#3953)
- Minor: Clicking `A message from x was deleted` messages will now jump to the message in question. (#3953) - Minor: Clicking `A message from x was deleted` messages will now jump to the message in question. (#3953)
- Minor: Added `is:first-msg` search option. (#3700) - Minor: Added `is:first-msg` search option. (#3700)
- Minor: Added `is:elevated-msg` search option. (#4018)
- Minor: Added AutoMod message flag filter. (#3938) - Minor: Added AutoMod message flag filter. (#3938)
- Minor: Added chatter count for each category in viewer list. (#3683, #3719) - Minor: Added chatter count for each category in viewer list. (#3683, #3719)
- Minor: Added option to open a user's chat in a new tab from the usercard profile picture context menu. (#3625) - Minor: Added option to open a user's chat in a new tab from the usercard profile picture context menu. (#3625)

View file

@ -34,6 +34,10 @@ MessageFlagsPredicate::MessageFlagsPredicate(const QString &flags)
{ {
this->flags_.set(MessageFlag::FirstMessage); this->flags_.set(MessageFlag::FirstMessage);
} }
else if (flag == "elevated-msg")
{
this->flags_.set(MessageFlag::ElevatedMessage);
}
} }
} }