Force red for factcheck.

This commit is contained in:
John Preston 2024-05-23 17:22:07 +04:00
parent 923a9ec6a8
commit a87a221f26
1 changed files with 3 additions and 1 deletions

View File

@ -783,7 +783,9 @@ void WebPage::draw(Painter &p, const PaintContext &context) const {
const auto selected = context.selected();
const auto view = parent();
const auto from = view->data()->contentColorsFrom();
const auto colorIndex = (sponsored && sponsored->colorIndex)
const auto colorIndex = factcheckData()
? 0 // red
: (sponsored && sponsored->colorIndex)
? sponsored->colorIndex
: from
? from->colorIndex()