Add flags.first_message filter variable (#3292)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
sando 2021-10-23 21:37:17 +11:00 committed by GitHub
parent 15f7e65e0c
commit e033f8e43e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View file

@ -21,6 +21,7 @@
- Minor: Added `flags.reward_message` filter variable (#3231)
- Minor: Added highlights for first messages (#3267)
- Minor: Ignore out of bounds check for tiling wms (#3270)
- Minor: Added `flags.first_message` filter variable (#3292)
- Minor: Removed duplicate setting for toggling `Channel Point Redeemed Message` highlights (#3296)
- Bugfix: Fixed colored usernames sometimes not working. (#3170)
- Bugfix: Restored ability to send duplicate `/me` messages. (#3166)

View file

@ -29,6 +29,7 @@ ContextMap buildContextMap(const MessagePtr &m, chatterino::Channel *channel)
* flags.sub_message
* flags.system_message
* flags.reward_message
* flags.first_message
* flags.whisper
*
* message.content
@ -80,6 +81,7 @@ ContextMap buildContextMap(const MessagePtr &m, chatterino::Channel *channel)
{"flags.system_message", m->flags.has(MessageFlag::System)},
{"flags.reward_message",
m->flags.has(MessageFlag::RedeemedChannelPointReward)},
{"flags.first_message", m->flags.has(MessageFlag::FirstMessage)},
{"flags.whisper", m->flags.has(MessageFlag::Whisper)},
{"message.content", m->messageText},

View file

@ -23,6 +23,7 @@ static const QMap<QString, QString> validIdentifiersMap = {
{"flags.sub_message", "sub/resub message?"},
{"flags.system_message", "system message?"},
{"flags.reward_message", "channel point reward message?"},
{"flags.first_message", "first message?"},
{"flags.whisper", "whisper message?"},
{"message.content", "message text"},
{"message.length", "message length"}};