Fix highlights not showing in mentions (#3801)

This commit is contained in:
pajlada
2022-06-06 15:36:53 +02:00
committed by GitHub
parent d29243a2a5
commit 9219647b6a
5 changed files with 116 additions and 8 deletions
@@ -121,6 +121,22 @@ struct HighlightResult {
this->customSoundUrl.has_value() && this->color &&
this->showInMentions;
}
friend std::ostream &operator<<(std::ostream &os,
const HighlightResult &result)
{
os << "Alert: " << (result.alert ? "Yes" : "No") << ", "
<< "Play sound: " << (result.playSound ? "Yes" : "No") << " ("
<< (result.customSoundUrl
? result.customSoundUrl.get().toString().toStdString()
: "")
<< ")"
<< ", "
<< "Color: "
<< (result.color ? result.color->name().toStdString() : "") << ", "
<< "Show in mentions: " << (result.showInMentions ? "Yes" : "No");
return os;
}
};
struct HighlightCheck {