From: Shane Synan Date: Sun, 21 Jun 2020 23:36:38 +0000 (-0400) Subject: common: Exclude ignored messages in buffer activity X-Git-Tag: 0.14-rc1~46 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;h=fce08b4580057ae5d0515f8c68ed3f54c5ddbbc2;hp=fce08b4580057ae5d0515f8c68ed3f54c5ddbbc2;p=quassel.git common: Exclude ignored messages in buffer activity Add a new message flag, 'Ignored', tracking if the message matched an ignore rule when received. In practice, this refers to dynamic ignore rules (SoftStrictness), as permanent ignore rules (HardStrictness) will drop the message entirely. Simple clients/bots may use this to apply ignore rules without having to implement the entire regular expression rules. Exclude messages that match an ignore rule when updating bufferActivity and highlightCount, fixing the appearance of new activity/highlights from ignored messages. Fixes #1511 NOTE: Using the 'Ignored' flag is not recommended for full clients as they will need to locally reveal hidden messages when specific dynamic ignore rules are disabled. Clean up leftover comment on serializing sender prefixes. Co-authored-by: Janne Koschinski ---