refactor: Remove Leading Mention in Replies and Highlight Participated Threads (#4047)

This commit is contained in:
nerix
2022-10-08 16:25:32 +02:00
committed by GitHub
parent 29272e130a
commit 4e2da540d2
19 changed files with 286 additions and 20 deletions
@@ -142,7 +142,8 @@ struct HighlightResult {
struct HighlightCheck {
using Checker = std::function<boost::optional<HighlightResult>(
const MessageParseArgs &args, const std::vector<Badge> &badges,
const QString &senderName, const QString &originalMessage, bool self)>;
const QString &senderName, const QString &originalMessage,
const MessageFlags &messageFlags, bool self)>;
Checker cb;
};
@@ -156,7 +157,8 @@ public:
**/
[[nodiscard]] std::pair<bool, HighlightResult> check(
const MessageParseArgs &args, const std::vector<Badge> &badges,
const QString &senderName, const QString &originalMessage) const;
const QString &senderName, const QString &originalMessage,
const MessageFlags &messageFlags) const;
private:
/**